Skip to content

Commit

Permalink
Export trace member of exception type to allow custom stack trace ent…
Browse files Browse the repository at this point in the history
…ries (#20772)

Added insertStackTraceEntry() proc to allow custom stack trace entries
  • Loading branch information
zevv committed Nov 7, 2022
1 parent a228e33 commit 0b4f502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,9 @@ type
## providing an exception message
## is bad style.
when defined(js):
trace: string
trace*: string
else:
trace: seq[StackTraceEntry]
trace*: seq[StackTraceEntry]
up: ref Exception # used for stacking exceptions. Not exported!

Defect* = object of Exception ## \
Expand Down

0 comments on commit 0b4f502

Please sign in to comment.