diff --git a/ChangeLog b/ChangeLog index e9bfa5c..a38b177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 13 17:41:13 2009 Minero Aoki + + * net/loveruby/cflat/utils/CommandUtils.java: better error + message. + Sun Jun 7 13:42:15 2009 Minero Aoki * net/loveruby/cflat/sysdep/x86/CodeGenerator.java diff --git a/net/loveruby/cflat/utils/CommandUtils.java b/net/loveruby/cflat/utils/CommandUtils.java index e6b389e..77c123f 100644 --- a/net/loveruby/cflat/utils/CommandUtils.java +++ b/net/loveruby/cflat/utils/CommandUtils.java @@ -6,8 +6,8 @@ import java.io.*; abstract public class CommandUtils { static public void invoke(List cmdArgs, - ErrorHandler errorHandler, boolean debug) throws IPCException { - if (debug) { + ErrorHandler errorHandler, boolean verbose) throws IPCException { + if (verbose) { dumpCommand(cmdArgs); } try { @@ -18,16 +18,18 @@ abstract public class CommandUtils { passThrough(proc.getErrorStream()); if (proc.exitValue() != 0) { errorHandler.error(cmd[0] + " failed." - + " (status " + proc.exitValue() + ")"); + + " (status " + proc.exitValue() + ")"); throw new IPCException("compile error"); } } catch (InterruptedException ex) { - errorHandler.error("gcc interrupted: " + ex.getMessage()); + errorHandler.error("external command interrupted: " + + cmdArgs.get(0) + ": " + ex.getMessage()); throw new IPCException("compile error"); } catch (IOException ex) { - errorHandler.error(ex.getMessage()); + errorHandler.error( + "IO error in external command: " + ex.getMessage()); throw new IPCException("compile error"); } }