Repository: tinkerpop Updated Branches: refs/heads/master 0787e4609 -> 5395aaeb0
Enhanced pre-processor output for failure cases. Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/98f09bad Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/98f09bad Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/98f09bad Branch: refs/heads/master Commit: 98f09bad615c2be3b5f8a4145f9a106977f13d6b Parents: 82afed3 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Authored: Tue Jun 28 14:02:32 2016 +0200 Committer: Daniel Kuppitz <daniel_kupp...@hotmail.com> Committed: Tue Jun 28 14:02:32 2016 +0200 ---------------------------------------------------------------------- docs/preprocessor/preprocess-file.sh | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/98f09bad/docs/preprocessor/preprocess-file.sh ---------------------------------------------------------------------- diff --git a/docs/preprocessor/preprocess-file.sh b/docs/preprocessor/preprocess-file.sh index 35b1f15..57a8b98 100755 --- a/docs/preprocessor/preprocess-file.sh +++ b/docs/preprocessor/preprocess-file.sh @@ -71,6 +71,13 @@ fi trap cleanup INT function cleanup { + if [ -f "${output}" ]; then + if [ `wc -l /tmp/foo | awk '{print $1}'` -gt 0 ]; then + echo -e "\n\e[1mLast 10 lines of ${output}:\e[0m\n" + tail -n10 ${output} + echo + fi + fi rm -rf ${output} ${CONSOLE_HOME}/.ext exit 255 }