getBulkData should throw an exception on error...

This commit is contained in:
Emanuel Oliveira authored and Leonardo Campos committed 2017-03-15 09:53:26 -03:00
1 parent fc648e38ab
commit 9e32df99ba
1 file changed
+4
@@ -188,6 +188,10 @@ DICOMWeb.getBulkData = function(geturl, options) {
console.log(result);
}
if (!Buffer.isBuffer(result)) {
throw result;
}
return result;
};