From cf3d4f9e9449389f8dba2bb2b802c07f5462192e Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 12 Nov 2013 10:59:18 +0000 Subject: 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. --- yarns/morph.shell-lib | 3 +++ 1 file changed, 3 insertions(+) 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" } -- cgit v1.2.1