diff options
author | ghost <97684920+sslime336@users.noreply.github.com> | 2023-03-09 05:34:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 22:34:59 +0100 |
commit | 8e9fc5e63968177c75d93af08d32717bf6c97693 (patch) | |
tree | 2a7e97bf8cf1303e78ad1a7773af1fa67cbd5bed /compiler/nodejs.nim | |
parent | 2f89f1eb780ab32be31dbe4074af70b587ad2f36 (diff) | |
download | Nim-8e9fc5e63968177c75d93af08d32717bf6c97693.tar.gz |
a better message if graphviz's dot/nodejs is not found in PATH (#21488)
* finish issue #21474: a better message if dot is not found locally when using gendepend * fix a typo in compiler * trim empty path reported in `findNodeJs` * compiler/main.nim: switch raise to simply quit
Diffstat (limited to 'compiler/nodejs.nim')
-rw-r--r-- | compiler/nodejs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nodejs.nim b/compiler/nodejs.nim index 283643e8d..c1feb196a 100644 --- a/compiler/nodejs.nim +++ b/compiler/nodejs.nim @@ -7,4 +7,4 @@ proc findNodeJs*(): string {.inline.} = result = findExe("node") if result.len == 0: echo "Please install NodeJS first, see https://nodejs.org/en/download" - raise newException(IOError, "NodeJS not found in PATH: " & result) + raise newException(IOError, "NodeJS not found in PATH") |