Skip to content

Commit

Permalink
Don't catch and re-throw
Browse files Browse the repository at this point in the history
Doing that only messes with the stack trace so that we can't find the original
source of the error.
  • Loading branch information
garfieldnate committed Sep 6, 2024
1 parent 4d8ded9 commit f434342
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ public void actionPerformed(ActionEvent event) {
final boolean readOnly = this.readOnly || event.getActionCommand().contains("Read-Only");
try (FeedbackManager.AtomicContext ignored = mainFrame.getFeedbackManager().beginAtomicContext()) {
mainFrame.openProject(vsaFile, readOnly);
} catch (Exception e) {
// There are no exceptions to catch from the feedback manager, but if there are, let's
throw new RuntimeException(e);
}
}
}

0 comments on commit f434342

Please sign in to comment.