8000 Print wattsi's output in case of build failure with --quiet · Ritsyy/html-build@e04ce22 · GitHub
[go: up one dir, main page]

Skip to content

Commit e04ce22

Browse files
committed
Print wattsi's output in case of build failure with --quiet
Because wattsi's output also respects --quiet, it will look something like this: ``` Parse Error: (35825,9) unexpected end tag There were errors. Running again to show the original line numbers. Parse Error: (35645,9) unexpected end tag There were errors. Stopping. ``` Follow-up to whatwg#58
1 parent 78f95ab commit e04ce22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ function runWattsi {
270270
}
271271

272272
runWattsi $HTML_TEMP/source-whatwg-complete $HTML_TEMP/wattsi-output
273-
$QUIET || cat $HTML_TEMP/wattsi-output.txt | grep -v '^$' # trim blank lines
274-
275-
if [ "$WATTSI_RESULT" != "0" ]; then
276-
$QUIET && exit $WATTSI_RESULT
273+
if [ "$WATTSI_RESULT" == "0" ]; then
274+
$QUIET || cat $HTML_TEMP/wattsi-output.txt | grep -v '^$' # trim blank lines
275+
else
276+
cat $HTML_TEMP/wattsi-output.txt | grep -v '^$' # trim blank lines
277277
if [ "$WATTSI_RESULT" == "65" ]; then
278278
echo
279279
echo "There were errors. Running again to show the original line numbers."

0 commit comments

Comments
 (0)
0