We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c4511 commit 1914fe3Copy full SHA for 1914fe3
example/exitcode.sh
@@ -0,0 +1,7 @@
1
+#!/usr/bin/env bash
2
+
3
+source "$( cd "${BASH_SOURCE[0]%/*}" && pwd )/../lib/oo-bootstrap.sh"
4
5
+import util/exception util/tryCatch util/log util/test
6
7
+exit 1
lib/util/tryCatch.sh
@@ -14,8 +14,9 @@ Exception::SetupTemp() {
14
}
15
16
Exception::CleanUp() {
17
+ local exitVal=$?
18
rm -f $__oo__storedExceptionLineFile $__oo__storedExceptionSourceFile $__oo__storedExceptionBacktraceFile $__oo__storedExceptionFile || exit 1
- exit 0
19
+ exit $exitVal
20
21
22
Exception::ResetStore() {
0 commit comments