diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index c1fd201801..10f8a2ba77 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -48,7 +48,7 @@ proc showErrorMessage(data: cstring, length: int) {.gcsafe, raises: [].} = try: errorMessageWriter($data) toWrite = false - except CatchableError: + except: discard if toWrite: when defined(genode): @@ -499,7 +499,7 @@ proc threadTrouble() = # also forward declared, it is 'raises: []' hence the try-except. try: if currException != nil: reportUnhandledError(currException) - except CatchableError: + except: discard quit 1 @@ -584,7 +584,7 @@ when defined(cpp) and appType != "lib" and not gotoBasedExceptions and currException.msg & " [" & $currException.name & "]" except StdException as e: msg = "Error: unhandled cpp exception: " & $e.what() - except CatchableError: + except: msg = "Error: unhandled unknown cpp exception" {.emit: "#if defined(_MSC_VER) && (_MSC_VER < 1923)".}