Skip to content

Commit c9ce719

Browse files
authored
Merge pull request #6339 from Countly/crash-name
[crashes] Derive crash name from stacktrace for drill event
2 parents ed4638a + b61a103 commit c9ce719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/crashes/api/api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,9 @@ plugins.setConfigs("crashes", {
550550
}
551551
}
552552
}
553+
if (!('name' in report) && 'error' in report) {
554+
data.name = (report.error.split('\n')[0] + "").trim();
555+
}
553556
if (report.custom) {
554557
for (let i in report.custom) {
555558
if (!data[i]) {

0 commit comments

Comments
 (0)