getBulkData should throw an exception on error...
This commit is contained in:
parent
fc648e38ab
commit
9e32df99ba
@ -188,6 +188,10 @@ DICOMWeb.getBulkData = function(geturl, options) {
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
if (!Buffer.isBuffer(result)) {
|
||||
throw result;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user