| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 13861da commit b32bcf7
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1580,7 +1580,7 @@ static void Chdir(const FunctionCallbackInfo<Value>& args) { | |||
| 1580 | 1580 | node::Utf8Value path(args.GetIsolate(), args[0]); | |
| 1581 | 1581 | int err = uv_chdir(*path); | |
| 1582 | 1582 | if (err) { | |
| 1583 | - return env->ThrowUVException(err, "uv_chdir"); | ||
| 1583 | + return env->ThrowUVException(err, "chdir", nullptr, *path, nullptr); | ||
| 1584 | 1584 | } | |
| 1585 | 1585 | } | |
| 1586 | 1586 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const { expectsError } = require('../common'); | ||
| 4 | + | ||
| 5 | + expectsError( | ||
| 6 | + () => { | ||
| 7 | + process.chdir('does-not-exist'); | ||
| 8 | + }, | ||
| 9 | + { | ||
| 10 | + type: Error, | ||
| 11 | + code: 'ENOENT', | ||
| 12 | + message: "ENOENT: no such file or directory, chdir 'does-not-exist'", | ||
| 13 | + } | ||
| 14 | + ); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments