Skip to content

Commit

Permalink
color navbar in red if saga crash (fixes #4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Nov 27, 2019
1 parent 9fb017f commit 333bae8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/javascripts/oxalis/model/sagas/root_saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
pushAnnotationAsync,
saveTracingAsync,
collectUndoStates,
toggleErrorHighlighting,
} from "oxalis/model/sagas/save_saga";
import {
warnAboutSegmentationOpacity,
Expand Down Expand Up @@ -55,6 +56,7 @@ function* restartableSaga(): Saga<void> {
} catch (err) {
console.error(err);
ErrorHandling.notify(err, {});
toggleErrorHighlighting(true);
alert(`\
Internal error.
Please reload the page to avoid losing data.
Expand Down

0 comments on commit 333bae8

Please sign in to comment.