Skip to content

Commit ad7c7f3

Browse files
committed
Merge pull request #1350 from meefik/patch-1
Fix for issue #1293
2 parents ff66a1d + 2b9af88 commit ad7c7f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/utils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ var toError = function(error) {
119119
: [];
120120

121121
for(var i = 0; i < keys.length; i++) {
122-
e[keys[i]] = error[keys[i]];
122+
try {
123+
e[keys[i]] = error[keys[i]];
124+
} catch(err) {
125+
// continue
126+
}
123127
}
124128

125129
return e;

0 commit comments

Comments
 (0)