Skip to content

Commit

Permalink
show an ErrorDialog instead
Browse files Browse the repository at this point in the history
instead of abusing the description field.
this seems better suited to display information about an exception.

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Jan 26, 2025
1 parent e76acae commit acc2ca5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ public void run(IProgressMonitor progress) throws InvocationTargetException {

shell.getDisplay()
.asyncExec(() -> {
txtDescription.setText("Failed to load from template loader (" + name
+ ") See Error Log for stack trace: "
+ failure.getMessage());
IStatus status = new Status(IStatus.ERROR, Plugin.PLUGIN_ID,
"Error loading templates", failure);
ErrorDialog.openError(shell, "Error", "An error occurred", status);
});

Plugin.getDefault()
Expand Down

0 comments on commit acc2ca5

Please sign in to comment.