Fix error 500 on report submission due to unexpected stack trace format

This commit is contained in:
Kevin Gaudin 2013-02-16 12:52:16 +01:00
parent 1502a1aac8
commit 0eb1227379
4 changed files with 16 additions and 4 deletions

View File

@ -1 +1,5 @@
[".idea"]
[
".idea",
"LICENSE",
"README.md"
]

View File

@ -1 +1,5 @@
[".idea"]
[
".idea",
"LICENSE",
"README.md"
]

View File

@ -1,6 +1,6 @@
function (head, req) {
// !code config/config.js
var appDBPrefix = 'acra-';
start({ "headers" : {"Content-type" : "application/rss+xml"}});
var NB_ITEMS_MAX = 30;

View File

@ -71,7 +71,11 @@ var addReportSignature = function(report) {
result.full = exceptionName + " : " + trim(faultyLine);
var captureRegEx = /\((.*)\)/g;
var faultyLineDigest = captureRegEx.exec(faultyLine)[1];
var capturedFaultyLine = captureRegEx.exec(faultyLine);
var faultyLineDigest = "unknown";
if(capturedFaultyLine) {
faultyLineDigest = capturedFaultyLine[1];
}
result.digest = exceptionName + " : " + faultyLineDigest;
report.SIGNATURE = result;
}