diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-17 02:49:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 11:49:54 +0200 |
commit | 5c9c1988f6bb92e8cfdc639fc0f83e78cb5efbd2 (patch) | |
tree | 5e3ab9df51240dc99c4175a6c266b5c375704e26 /compiler/ic | |
parent | 5c5f356347b15a82491c7f23e9bf2dd30a0c80f2 (diff) | |
download | Nim-5c9c1988f6bb92e8cfdc639fc0f83e78cb5efbd2.tar.gz |
-d:nimDebug: calls doAssert false instead of quit (#17739)
Diffstat (limited to 'compiler/ic')
-rw-r--r-- | compiler/ic/ic.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim index da0af2edf..6f208a2a4 100644 --- a/compiler/ic/ic.nim +++ b/compiler/ic/ic.nim @@ -1149,8 +1149,7 @@ proc rodViewer*(rodfile: AbsoluteFile; config: ConfigRef, cache: IdentCache) = var m: PackedModule let err = loadRodFile(rodfile, m, config, ignoreConfig=true) if err != ok: - echo "Error: could not load: ", rodfile.string, " reason: ", err - quit 1 + config.quitOrRaise "Error: could not load: " & $rodfile.string & " reason: " & $err when true: echo "exports:" |