Improve ruffus exception handling

ruffus swallows the return code if the process of handling an exception
we hit an error in ruffus' own code, which can happen.  So pick through
its error stack and find out if there's an interesting return code in
there.  Had to use eval() of all things.

Also suppress the stack trace for normal error conditions that don't
need one.
This commit is contained in:
James R. Barlow
2015-08-11 02:19:46 -07:00
parent a1238d7bf9
commit 9247ea00bf
3 changed files with 39 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
%PDF-1.3
This is not a valid PDF file
%%EOF