[MINVOKER-225] strange message ordering in case of post-build script failure
authorrfscholte <rfscholte@apache.org>
Sat, 12 Jan 2019 12:43:02 +0000 (13:43 +0100)
committerrfscholte <rfscholte@apache.org>
Sat, 12 Jan 2019 12:43:02 +0000 (13:43 +0100)
src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java

index e2291ed..71e7e78 100644 (file)
@@ -1734,8 +1734,8 @@ public abstract class AbstractInvokerMojo
 \r
             if ( !suppressSummaries )\r
             {\r
-                getLog().info( pad( buildJob ).failure( "ERROR" ).a( ' ' ) + formatTime( buildJob.getTime() ) );\r
                 getLog().info( "  " + e.getMessage() );\r
+                getLog().info( pad( buildJob ).failure( "ERROR" ).a( ' ' ) + formatTime( buildJob.getTime() ) );\r
             }\r
         }\r
         catch ( RunFailureException e )\r
@@ -1745,8 +1745,8 @@ public abstract class AbstractInvokerMojo
 \r
             if ( !suppressSummaries )\r
             {\r
-                getLog().info( pad( buildJob ).failure( "FAILED" ).a( ' ' ) + formatTime( buildJob.getTime() ) );\r
                 getLog().info( "  " + e.getMessage() );\r
+                getLog().info( pad( buildJob ).failure( "FAILED" ).a( ' ' ) + formatTime( buildJob.getTime() ) );\r
             }\r
         }\r
         finally\r