Skip to content

Commit 2c515ea

Browse files
sehropebendrucker
authored andcommitted
fix: Throw an Error rather than log on unhandled ElementTypes (#95)
1 parent 10f2725 commit 2c515ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binaryParsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ var parseArray = function(value) {
197197
return result;
198198
}
199199
else {
200-
console.log("ERROR: ElementType not implemented: " + elementType);
200+
throw new Error('ElementType not implemented: ' + elementType);
201201
}
202202
};
203203

0 commit comments

Comments
 (0)