Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r--lib/utils/read-json.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js
index 312e670f6..78c0af718 100644
--- a/lib/utils/read-json.js
+++ b/lib/utils/read-json.js
@@ -197,7 +197,7 @@ function processJsonString (opts, cb) { return function (er, jsonString) {
function jsonParseFail (ex, file, cb) {
var e = new Error(
"Failed to parse json\n"+ex.message)
- e.errno = npm.EJSONPARSE
+ e.code = "EJSONPARSE"
e.file = file
if (cb) return cb(e)
throw e