diff --git a/Packages/ohif-core/client/components/bootstrap/dialog/info.html b/Packages/ohif-core/client/components/bootstrap/dialog/info.html index 52b355e5c..5126a40d2 100644 --- a/Packages/ohif-core/client/components/bootstrap/dialog/info.html +++ b/Packages/ohif-core/client/components/bootstrap/dialog/info.html @@ -6,9 +6,13 @@ {{#each message in this.messages}}
{{else}} - {{#let message=(choose this.reason this.message 'An error has ocurred.')}} + {{#if eq this.errorType 'Meteor.Error'}} + {{>pageError (extend this error=this.details)}} + {{else}} + {{#let message=(choose this.reason this.message 'An error has ocurred.')}} - {{/let}} + {{/let}} + {{/if}} {{/each}} {{/dialogSimple}} diff --git a/Packages/ohif-core/client/components/index.js b/Packages/ohif-core/client/components/index.js index 59ded893b..fdcfd036b 100644 --- a/Packages/ohif-core/client/components/index.js +++ b/Packages/ohif-core/client/components/index.js @@ -1,5 +1,6 @@ import './base'; import './bootstrap'; +import './pages'; import './paginationArea'; import './playground/playground.html'; import './playground/playground.styl'; diff --git a/Packages/ohif-core/client/components/pages/error/error.html b/Packages/ohif-core/client/components/pages/error/error.html new file mode 100644 index 000000000..e9d2b7771 --- /dev/null +++ b/Packages/ohif-core/client/components/pages/error/error.html @@ -0,0 +1,16 @@ + + {{#section 'pageMessageAfterContent'}} + {{#let stack=(choose this.stack this.error.stack)}} + {{#if (and shallDisplayErrorStack stack)}} +{{stack}}
+