This reverts commit 0adb47aa15.
This commit is contained in:
parent
969cb97c0a
commit
fd8b79707c
2 changed files with 2 additions and 10 deletions
|
|
@ -135,7 +135,6 @@ proc pushCurrentException(e: sink(ref Exception)) {.compilerRtl, inl.} =
|
||||||
#showErrorMessage2 "A"
|
#showErrorMessage2 "A"
|
||||||
|
|
||||||
proc popCurrentException {.compilerRtl, inl.} =
|
proc popCurrentException {.compilerRtl, inl.} =
|
||||||
if currException != nil:
|
|
||||||
currException = currException.up
|
currException = currException.up
|
||||||
#showErrorMessage2 "B"
|
#showErrorMessage2 "B"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,3 @@ let ex = newException(CatchableError, "test")
|
||||||
setCurrentException(ex)
|
setCurrentException(ex)
|
||||||
doAssert getCurrentException().msg == ex.msg
|
doAssert getCurrentException().msg == ex.msg
|
||||||
doAssert getCurrentExceptionMsg() == ex.msg
|
doAssert getCurrentExceptionMsg() == ex.msg
|
||||||
setCurrentException(nil)
|
|
||||||
|
|
||||||
try:
|
|
||||||
raise newException(CatchableError, "test2")
|
|
||||||
except:
|
|
||||||
setCurrentException(nil)
|
|
||||||
doAssert getCurrentException() == nil
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue