Browse Source

Improved error handling/message

Artur Adib 13 years ago
parent
commit
38d28ecb2e
  1. 8
      web/viewer.js

8
web/viewer.js

@ -353,8 +353,14 @@ var PDFView = {
if (moreInfo) { if (moreInfo) {
errorMoreInfo.value += 'Message: ' + moreInfo.message; errorMoreInfo.value += 'Message: ' + moreInfo.message;
if (moreInfo.stack) if (moreInfo.stack) {
errorMoreInfo.value += '\n' + 'Stack: ' + moreInfo.stack; errorMoreInfo.value += '\n' + 'Stack: ' + moreInfo.stack;
} else {
if (moreInfo.filename)
errorMoreInfo.value += '\n' + 'File: ' + moreInfo.filename;
if (moreInfo.filename)
errorMoreInfo.value += '\n' + 'Line: ' + moreInfo.lineNumber;
}
} }
errorMoreInfo.rows = errorMoreInfo.value.split('\n').length - 1; errorMoreInfo.rows = errorMoreInfo.value.split('\n').length - 1;
}, },

Loading…
Cancel
Save