Skip to content

Commit 90e55a1

Browse files
BeniChenizkat
authored andcommitted
1 parent 02c837e commit 90e55a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/error-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function errorHandler (er) {
202202
msg.summary.concat(msg.detail).forEach(function (errline) {
203203
log.error.apply(log, errline)
204204
})
205-
if (npm.config.get('json')) {
205+
if (npm.config && npm.config.get('json')) {
206206
var error = {
207207
error: {
208208
code: er.code,

0 commit comments

Comments
 (0)