Display hint for -d:nimDebugDlOpen on load failure

This commit is contained in:
Felix Krause
2016-10-03 12:06:54 +02:00
parent 9c91558e62
commit cee445b889

View File

@@ -26,6 +26,8 @@ proc nimLoadLibraryError(path: string) =
stderr.rawWrite("could not load: ")
stderr.rawWrite(path)
stderr.rawWrite("\n")
when not(defined(nimDebugDlOpen)):
stderr.rawWrite("compile with -d:nimDebugDlOpen for more information\n")
quit(1)
proc procAddrError(name: cstring) {.noinline.} =