diff options
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r-- | lib/system/excpt.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index e3448ff4c..4074002fe 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -484,7 +484,9 @@ when defined(cpp) and appType != "lib" and var msg = "Unknown error in unexpected exception handler" try: + {.emit"#if !defined(_MSC_VER) || (_MSC_VER >= 1923)".} raise + {.emit"#endif".} except Exception: msg = currException.getStackTrace() & "Error: unhandled exception: " & currException.msg & " [" & $currException.name & "]" @@ -493,6 +495,10 @@ when defined(cpp) and appType != "lib" and except: msg = "Error: unhandled unknown cpp exception" + {.emit"#if defined(_MSC_VER) && (_MSC_VER < 1923)".} + msg = "Error: unhandled unknown cpp exception" + {.emit"#endif".} + when defined(genode): # stderr not available by default, use the LOG session echo msg |