Skip to content

Commit

Permalink
Bugfix: Check if PolyglotException is host exception before using con…
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
vigorouscoding committed Feb 12, 2024
1 parent 0c9e0bc commit 1a46013
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private static void reportError(final SecurityContext securityContext, final Gra
endColumnNumber = location.getEndColumn();
}

boolean broadcastToAdminUI = !(ex.asHostException() instanceof AssertException);
boolean broadcastToAdminUI = !(ex.isHostException() && (ex.asHostException() instanceof AssertException));

reportError(securityContext, entity, message, lineNumber, columnNumber, endLineNumber, endColumnNumber, snippet, broadcastToAdminUI);
}
Expand Down

0 comments on commit 1a46013

Please sign in to comment.