You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2016/06/28 12:03:04 UTC

tinkerpop git commit: Enhanced pre-processor output for failure cases.

Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1071 82afed3a4 -> 98f09bad6


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/TINKERPOP-1071
Commit: 98f09bad615c2be3b5f8a4145f9a106977f13d6b
Parents: 82afed3
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Tue Jun 28 14:02:32 2016 +0200
Committer: Daniel Kuppitz <da...@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
 }