Always return PERMISSION_DENIED as an Error
This commit is contained in:
parent
0012c3a905
commit
dc0c5f5494
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -507,7 +507,7 @@ function WindowsWaitForStatus(instance, end) {
|
||||||
// We check that command output has been redirected to stdout file:
|
// We check that command output has been redirected to stdout file:
|
||||||
Node.fs.stat(instance.pathStdout,
|
Node.fs.stat(instance.pathStdout,
|
||||||
function(error) {
|
function(error) {
|
||||||
if (error) return end(PERMISSION_DENIED);
|
if (error) return end(new Error(PERMISSION_DENIED));
|
||||||
WindowsWaitForStatus(instance, end);
|
WindowsWaitForStatus(instance, end);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue