JaroslavTulach commented on a change in pull request #2459:
URL: https://github.com/apache/netbeans/pull/2459#discussion_r505710302



##########
File path: 
java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/launch/NbLaunchDelegate.java
##########
@@ -63,7 +63,9 @@
         Pair<ActionProvider, String> providerAndCommand = findTarget(toRun, 
debug);
         CompletableFuture<Void> launchFuture = new CompletableFuture<>();
         if (providerAndCommand == null) {
-            launchFuture.completeExceptionally(new 
CancellationException("Cannot find " + (debug ? "debug" : "run") + " action!"));
+            launchFuture.completeExceptionally(new ResponseErrorException(new 
ResponseError(

Review comment:
       Good idea.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to