Skip to content

Commit

Permalink
Also handle ConcurrencyException
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Nov 24, 2023
1 parent ecdaa70 commit 504a5d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/models/figure_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,10 @@
dataType: dataType,
// work with the response
success: function( data ) {
if (data.Exception) {
if (data.Exception || data.ConcurrencyException) {
// If something went wrong, show error and don't add to figure
alert(`Image loading from ${imgDataUrl} included an Error: ${data.Exception}`);
message = data.Exception || "ConcurrencyException"
alert(`Image loading from ${imgDataUrl} included an Error: ${message}`);
return;
}

Expand Down

0 comments on commit 504a5d6

Please sign in to comment.