mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-11 18:26:32 +00:00
Use absolute path for binary when checking for existence
This commit is contained in:
parent
4ab145e554
commit
9084871447
@ -62,10 +62,10 @@ method start*(node: HardhatProcess) {.async.} =
|
||||
logScope:
|
||||
nodeName = node.name
|
||||
|
||||
if not fileExists(node.executable):
|
||||
let binary = absolutePath(node.workingDir / node.executable)
|
||||
if not fileExists(binary):
|
||||
raiseAssert "cannot start hardhat, binary doesn't exist (looking for " &
|
||||
&"{absolutePath(node.workingDir / node.executable)}). Try running " &
|
||||
&"`npm install` in {node.workingDir}."
|
||||
&"{binary}). Try running `npm install` in {node.workingDir}."
|
||||
|
||||
let poptions = node.processOptions + {AsyncProcessOption.StdErrToStdOut}
|
||||
trace "starting node",
|
||||
|
Loading…
x
Reference in New Issue
Block a user