Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Dec 4, 2024
1 parent 81b23a6 commit ce89d14
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,9 @@ public CompletableFuture<Void> restart(RestartArguments args) {
resetServer();
launchDebuggeeProgram();
return CompletableFuture.completedFuture(null);
} catch (Throwable e) {
outputLogger.sendErrorOutput("Failed to restart the ballerina program due to: " + e);
} catch (Exception e) {
LOGGER.error("Failed to restart the ballerina program due to: " + e.getMessage(), e);
outputLogger.sendErrorOutput("Failed to restart the ballerina program");
return CompletableFuture.completedFuture(null);
}
}
Expand Down Expand Up @@ -668,7 +669,7 @@ void terminateDebugSession(boolean shouldTerminateDebuggee, boolean enableClient
if (context.getLaunchedProcess().isPresent() && context.getLaunchedProcess().get().isAlive()) {
killProcessWithDescendants(context.getLaunchedProcess().get());
}
// Destroys remote VM process, if `shouldTerminateDebuggee' flag is set.
// Destroys remote VM process, if 'shouldTerminateDebuggee' flag is set.
if (shouldTerminateDebuggee) {
terminateDebuggee();
}
Expand Down

0 comments on commit ce89d14

Please sign in to comment.