Skip to content

Commit 614cb1c

Browse files
authored
Improved output on webpack error (#3241)
* Changed to also show status on webpack error. * improve message. * Make the output easy to understand. * remove indent.
1 parent 275fbb5 commit 614cb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpacker/compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def run_webpack
8989
end
9090
else
9191
non_empty_streams = [stdout, stderr].delete_if(&:empty?)
92-
logger.error "Compilation failed:\n#{non_empty_streams.join("\n\n")}"
92+
logger.error "\nCOMPILATION FAILED:\nEXIT STATUS: #{status}\nOUTPUTS:\n#{non_empty_streams.join("\n\n")}"
9393
end
9494

9595
status.success?

0 commit comments

Comments
 (0)