diff --git a/lib/src/main/java/rife/bld/BuildExecutor.java b/lib/src/main/java/rife/bld/BuildExecutor.java index a8c04e4f..48184c65 100644 --- a/lib/src/main/java/rife/bld/BuildExecutor.java +++ b/lib/src/main/java/rife/bld/BuildExecutor.java @@ -92,7 +92,22 @@ public class BuildExecutor { exitStatus(1); new HelpOperation(this, arguments()).executePrintOverviewHelp(); System.err.println(); - System.err.println(ExceptionUtils.getExceptionStackTrace(e)); + boolean first = true; + var e2 = e; + while (e2 != null) { + if (e2.getMessage() != null) { + if (!first) { + System.err.print("> "); + } + System.err.println(e2.getMessage()); + first = false; + } + e2 = e2.getCause(); + } + + if (first) { + System.err.println(ExceptionUtils.getExceptionStackTrace(e)); + } } } diff --git a/lib/src/main/java/rife/bld/operations/exceptions/UploadException.java b/lib/src/main/java/rife/bld/operations/exceptions/UploadException.java index 15bf2f95..4eb5a7bd 100644 --- a/lib/src/main/java/rife/bld/operations/exceptions/UploadException.java +++ b/lib/src/main/java/rife/bld/operations/exceptions/UploadException.java @@ -18,12 +18,12 @@ public class UploadException extends RuntimeException { private final String url_; public UploadException(String url, int status) { - super("An error occurred during while uploading to '" + url + "' : status code " + status); + super("An error occurred while uploading to '" + url + "' : HTTP status code " + status); url_ = url; } public UploadException(String url, Throwable cause) { - super("An error occurred during while uploading to '" + url + "'", cause); + super("An error occurred while uploading to '" + url + "'", cause); url_ = url; }