Improved error handling/message
This commit is contained in:
parent
7f3d5ae6d3
commit
38d28ecb2e
@ -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…
x
Reference in New Issue
Block a user