mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
29 lines
431 B
Nim
29 lines
431 B
Nim
discard """
|
|
cmd: "nim $target $options --stackTrace:on --lineTrace:on $file"
|
|
outputsub: '''
|
|
t7224.nim(25) at module t7224
|
|
t7224.nim(22) at t7224.aaa
|
|
t7224.nim(19) at t7224.bbb
|
|
t7224.nim(16) at t7224.ccc
|
|
t7224.nim(13) at t7224.ddd
|
|
'''
|
|
"""
|
|
|
|
proc ddd() =
|
|
raise newException(IOError, "didn't do stuff")
|
|
|
|
proc ccc() =
|
|
ddd()
|
|
|
|
proc bbb() =
|
|
ccc()
|
|
|
|
proc aaa() =
|
|
bbb()
|
|
|
|
try:
|
|
aaa()
|
|
|
|
except IOError as e:
|
|
echo getStackTrace(e)
|