Skip to content

Commit

Permalink
Merge pull request #3010 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
[Embedded] Don't show message for unhandled errors
  • Loading branch information
JuliaRadzhabova authored May 24, 2024
2 parents 32be51e + 612768e commit 24800d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions apps/documenteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,9 @@ DE.ApplicationController = new(function(){
return;

default:
message = me.errorDefaultMessage.replace('%1', id);
break;
// message = me.errorDefaultMessage.replace('%1', id);
// break;
return;
}

if (level == Asc.c_oAscError.Level.Critical) {
Expand Down
5 changes: 3 additions & 2 deletions apps/presentationeditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,9 @@ PE.ApplicationController = new(function(){
break;

default:
message = me.errorDefaultMessage.replace('%1', id);
break;
// message = me.errorDefaultMessage.replace('%1', id);
// break;
return;
}

if (level == Asc.c_oAscError.Level.Critical) {
Expand Down
5 changes: 3 additions & 2 deletions apps/spreadsheeteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,9 @@ SSE.ApplicationController = new(function(){
break;

default:
message = me.errorDefaultMessage.replace('%1', id);
break;
// message = me.errorDefaultMessage.replace('%1', id);
// break;
return;
}

if (level == Asc.c_oAscError.Level.Critical) {
Expand Down

0 comments on commit 24800d8

Please sign in to comment.