diff --git a/lib/system.nim b/lib/system.nim index c7667cfba4..a5ccb74f28 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -553,6 +553,9 @@ type CatchableError* = object of Exception ## \ ## Abstract class for all exceptions that are catchable. +when defined(nimStackTraceOverride): + proc `=copy`*(x: StackTraceEntry) {.error.} + when defined(nimIcIntegrityChecks): include "system/exceptions"