Skip to content

Commit 08f801a

Browse files
committed
bam
1 parent 4187b95 commit 08f801a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,13 +1423,13 @@ function executeCodeAndCreateViz(codeToExec,
14231423
killerException = trace[0]; // killer!
14241424
setFronendError([trace[0].exception_msg]);
14251425
}
1426-
else if (trace[trace.length - 1].exception_msg) {
1426+
else if (trace.length > 0 && trace[trace.length - 1].exception_msg) {
14271427
killerException = trace[trace.length - 1]; // killer!
14281428
setFronendError([trace[trace.length - 1].exception_msg]);
14291429
}
14301430
else {
1431-
setFronendError(["Unknown error. Reload the page and try again.",
1432-
"Report a bug to philip@pgbovine.net by clicking on the 'Generate URL'",
1431+
setFronendError(["Unknown error. Reload the page and try again. Or report a bug to",
1432+
"philip@pgbovine.net by clicking on the 'Generate permanent link'",
14331433
"button at the bottom and including a URL in your email."]);
14341434
}
14351435
}
@@ -1556,7 +1556,7 @@ function executeCodeAndCreateViz(codeToExec,
15561556

15571557
if (!backendScript) {
15581558
setFronendError(["Server configuration error: No backend script",
1559-
"Report a bug to philip@pgbovine.net by clicking on the 'Generate URL'",
1559+
"Report a bug to philip@pgbovine.net by clicking on the 'Generate permanent link'",
15601560
"button at the bottom and including a URL in your email."]);
15611561
return;
15621562
}

0 commit comments

Comments
 (0)