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:
authorDomenic Denicola <domenic@domenicdenicola.com>2014-06-25 02:37:00 +0400
committerDomenic Denicola <domenic@domenicdenicola.com>2014-06-25 09:50:18 +0400
commit6c146fbec083813ad19e8d018edaa6dc11a27b2e (patch)
treeef335aa2c521b0b808ff5da579b864639cba39bd
parent0b3d5b968c34385d57ce8b61416b0feebe8da8c3 (diff)
Remove spurious `er.code =` assignments.
They literally do nothing in all cases.
-rw-r--r--lib/utils/error-handler.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/utils/error-handler.js b/lib/utils/error-handler.js
index 53ebc28db..089c71228 100644
--- a/lib/utils/error-handler.js
+++ b/lib/utils/error-handler.js
@@ -112,7 +112,6 @@ function errorHandler (er) {
break
case "ELIFECYCLE":
- er.code = "ELIFECYCLE"
log.error("", er.message)
log.error("", ["","Failed at the "+er.pkgid+" "+er.stage+" script."
,"This is most likely a problem with the "+er.pkgname+" package,"
@@ -126,7 +125,6 @@ function errorHandler (er) {
break
case "ENOGIT":
- er.code = "ENOGIT"
log.error("", er.message)
log.error("", ["","Failed using git."
,"This is most likely not a problem with npm itself."
@@ -135,7 +133,6 @@ function errorHandler (er) {
break
case "EJSONPARSE":
- er.code = "EJSONPARSE"
log.error("", er.message)
log.error("", "File: "+er.file)
log.error("", ["Failed to parse package.json data."
@@ -146,7 +143,6 @@ function errorHandler (er) {
break
case "E404":
- er.code = "E404"
var msg = [er.message]
if (er.pkgid && er.pkgid !== "-") {
msg.push("", "'"+er.pkgid+"' is not in the npm registry."
@@ -168,7 +164,6 @@ function errorHandler (er) {
break
case "EPUBLISHCONFLICT":
- er.code = "EPUBLISHCONFLICT"
log.error("publish fail", ["Cannot publish over existing version."
,"Update the 'version' field in package.json and try again."
,""
@@ -181,7 +176,6 @@ function errorHandler (er) {
break
case "EISGIT":
- er.code = "EISGIT"
log.error("git", [er.message
," "+er.path
,"Refusing to remove it. Update manually,"
@@ -190,7 +184,6 @@ function errorHandler (er) {
break
case "ECYCLE":
- er.code = "ECYCLE"
log.error("cycle", [er.message
,"While installing: "+er.pkgid
,"Found a pathological dependency case that npm cannot solve."
@@ -199,7 +192,6 @@ function errorHandler (er) {
break
case "EBADPLATFORM":
- er.code = "EBADPLATFORM"
log.error("notsup", [er.message
,"Not compatible with your operating system or architecture: "+er.pkgid
,"Valid OS: "+er.os.join(",")