X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FTool.java;h=0ef2a6ea7c22941d7bbb7709e49a7cd2ccc443bd;hp=e67e15d7867fb21ebc872fe5e3d09242733c982c;hb=0fdb42ac4675ac888d7cfb3f29f68c342f47b9e9;hpb=39e5e412f910a30858d2feffdb69326ae088ee4c diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java index e67e15d786..0ef2a6ea7c 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/Tool.java @@ -49,7 +49,7 @@ public class Tool implements EfiDefine, Section { try { executeTool (); } catch (Exception e) { - throw new BuildException("Call to executeTool failed!\n"); + throw new BuildException("Call to executeTool failed!\n" + e.getMessage()); } /// @@ -83,7 +83,7 @@ public class Tool implements EfiDefine, Section { buffer.writeByte(0); } } catch (Exception e) { - System.out.print(e.getMessage()); + EdkLog.log(e.getMessage()); throw new BuildException("Tool call, toBuffer failed!\n"); } finally { try { @@ -94,7 +94,7 @@ public class Tool implements EfiDefine, Section { fs.close(); } } catch (Exception e) { - System.out.println("WARNING: Cannot close " + outputFile.getPath()); + EdkLog.log("WARNING: Cannot close " + outputFile.getPath()); } } } @@ -129,7 +129,7 @@ public class Tool implements EfiDefine, Section { sect.toBuffer(Do); } catch (BuildException e) { - System.out.print(e.getMessage()); + EdkLog.log(e.getMessage()); throw new BuildException ("GenSection failed at Tool!"); } Do.close(); @@ -150,7 +150,7 @@ public class Tool implements EfiDefine, Section { Process process = Runtime.getRuntime().exec(command + " " + argument); process.waitFor(); } catch (Exception e) { - System.out.print (e.getMessage()); + EdkLog.log(e.getMessage()); throw new BuildException("Execution of externalTool task failed!\n"); } }