Stop throwing errors when no study data is available, log issue instead.

This commit is contained in:
Erik Ziegler committed 2017-06-15 09:18:54 +02:00
1 parent 319f030f32
commit 5cec053b8d
2 files changed
+2 -3

No files matched your search

@@ -30,7 +30,7 @@ Template.studyTimepointBrowser.onCreated(() => {
return timepoint.studyInstanceUids.map(studyInstanceUid => {
const query = {
patientId: timepoint.patientId,
studyInstanceUid: studyInstanceUid
studyInstanceUid
};
const loadedStudy = OHIF.viewer.Studies.findBy(query);
@@ -40,7 +40,7 @@ Template.studyTimepointBrowser.onCreated(() => {
const notYetLoaded = OHIF.studylist.collections.Studies.findOne(query);
if (!notYetLoaded) {
throw new OHIFError(`No study data available for Study: ${studyInstanceUid}`);
OHIF.log.info(`No study data available for Study: ${studyInstanceUid}`);
}
return notYetLoaded;
-1
View File
@@ -121,7 +121,6 @@ Router.route(Settings.uri.replace(OHIF.utils.absoluteUrl(), ''), function() {
// Use Node's HTTP API to send a request to the PACS
const proxyRequest = requester(options, proxyResponse => {
console.log(JSON.stringify(proxyResponse, null, 2));
// When we receive data from the PACS, stream it as the
// response to the original request.
// console.log(`Got response: ${proxyResponse.statusCode}`);