Improved debug info in error modal

This commit is contained in:
Igor Zhukov 2014-10-22 16:35:19 +04:00
parent c7f725a9e0
commit 4a3463eefd

View File

@ -52,7 +52,7 @@
<div ng-if="error" class="error_modal_details" ng-switch="error.detailsShown">
<textarea ng-switch-when="true" rows="3" onclick="this.select()">Method: {{error.input || 'N/A'}}
Result: {{error.originalError ? error.originalError : (error.stack ? (error.name || '') + ' ' + (error.description || error.message) : error)}}
Stack: {{error.stack}}</textarea>
Stack: {{error.originalError.stack || error.stack}}</textarea>
<div ng-switch-default>
<a href="" ng-click="error.detailsShown = true" my-i18n="error_modal_tech_details"></a>
</div>