Display hint for -d:nimDebugDlOpen on load failure
This commit is contained in:
parent
9c91558e62
commit
cee445b889
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ proc nimLoadLibraryError(path: string) =
|
||||||
stderr.rawWrite("could not load: ")
|
stderr.rawWrite("could not load: ")
|
||||||
stderr.rawWrite(path)
|
stderr.rawWrite(path)
|
||||||
stderr.rawWrite("\n")
|
stderr.rawWrite("\n")
|
||||||
|
when not(defined(nimDebugDlOpen)):
|
||||||
|
stderr.rawWrite("compile with -d:nimDebugDlOpen for more information\n")
|
||||||
quit(1)
|
quit(1)
|
||||||
|
|
||||||
proc procAddrError(name: cstring) {.noinline.} =
|
proc procAddrError(name: cstring) {.noinline.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue