Skip to content

Commit 2b9af88

Browse files
committed
Fix for issue #1293
1 parent e109f60 commit 2b9af88

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)