Always return PERMISSION_DENIED as an Error

This commit is contained in:
Joran Dirk Greef 2019-06-01 10:36:11 +02:00
parent 0012c3a905
commit dc0c5f5494

View file

@ -507,7 +507,7 @@ function WindowsWaitForStatus(instance, end) {
// We check that command output has been redirected to stdout file:
Node.fs.stat(instance.pathStdout,
function(error) {
if (error) return end(PERMISSION_DENIED);
if (error) return end(new Error(PERMISSION_DENIED));
WindowsWaitForStatus(instance, end);
}
);