Raise Defect when unexpected exceptions occur

This commit is contained in:
Mark Spanbroek 2023-12-14 10:44:42 +01:00 committed by Giuliano Mega
parent 50dfe3aab1
commit 3f89e84f7c
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ template launderExceptions(body: typed) =
except CatchableError as ex: except CatchableError as ex:
raise ex raise ex
except Exception as ex: except Exception as ex:
raise newException(CatchableError, ex.msg, ex) raise newException(Defect, ex.msg, ex)
template suite*(name, body) = template suite*(name, body) =