summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-11-12 10:59:18 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-11-22 13:49:25 +0000
commitcf3d4f9e9449389f8dba2bb2b802c07f5462192e (patch)
tree968ff35699f78a78a86d91d074e6e7d309fd9c3b
parent604611aceb217649d0e08f635d24e1b3e83b1028 (diff)
downloadmorph-cf3d4f9e9449389f8dba2bb2b802c07f5462192e.tar.gz
yarns: Also output error messages to terminal
Saving the result is useful for the tests, but diagnostics of failures are quicker if the result is printed to the terminal as well.
-rw-r--r--yarns/morph.shell-lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib
index b11ddab1..2981e6d9 100644
--- a/yarns/morph.shell-lib
+++ b/yarns/morph.shell-lib
@@ -34,6 +34,9 @@ run_morph()
--cachedir-min-space=0 --tempdir-min-space=0 \
--no-default-config --config "$DATADIR/morph.conf" "$@" \
2> "$DATADIR/result-$1"
+ local exit_code="$?"
+ cat "$DATADIR/result-$1" >&2
+ return "$exit_code"
}