getBulkData should throw an exception on error...

This commit is contained in:
Emanuel Oliveira 2016-12-06 16:34:46 -02:00 committed by Leonardo Campos
parent fc648e38ab
commit 9e32df99ba

View File

@ -188,6 +188,10 @@ DICOMWeb.getBulkData = function(geturl, options) {
console.log(result);
}
if (!Buffer.isBuffer(result)) {
throw result;
}
return result;
};