Skip to content

Commit

Permalink
Handle empty failure reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Dec 23, 2024
1 parent 7793bd0 commit a262066
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public void didRenameFiles(RenameFilesParams params, Set<ISourceLocation> worksp
.thenCompose(docChanges -> client.applyEdit(new ApplyWorkspaceEditParams(docChanges)))
.thenAccept(editResponse -> {
if (!editResponse.isApplied()) {
throw new RuntimeException("Applying module rename failed: " + editResponse.getFailureReason());
throw new RuntimeException("Applying module rename failed" + (editResponse.getFailureReason() != null ? (": " + editResponse.getFailureReason()) : ""));
}
})
.exceptionally(e -> {
Expand Down

0 comments on commit a262066

Please sign in to comment.