[hg] main-silver: #227498 improve error message

  • From: Milos Kleint < >
  • To: ,
  • Subject: [hg] main-silver: #227498 improve error message
  • Date: Thu, 16 May 2013 04:50:49 -0700

changeset 183dc41d3eaf in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/183dc41d3eaf
description:
        #227498 improve error message

diffstat:

 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenExecProject.java
 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenExecProject.java
 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenExecProject.java
--- 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenExecProject.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/MavenExecProject.java
@@ -65,7 +65,8 @@
     @Override public Task execute(String... args) throws IOException {
         Project app = MavenNbModuleImpl.findAppProject(p);
         if (app == null) {
-            throw new IOException("No application project found to 
correspond to " + p);
+            NbMavenProject prj = p.getLookup().lookup(NbMavenProject.class);
+            throw new IOException("No open nbm-application project found to 
contain " + prj.getMavenProject().getId() + ". Please open the aplication 
project and try again.");
         }
         // XXX build w/ deps first? to do so, RP.post a Runnable which does 
both actions and calls result()
         RunConfig cfg = 
RunUtils.createRunConfig(FileUtil.toFile(app.getProjectDirectory()), app,

[hg] main-silver: #227498 improve error message

Milos Kleint 05/16/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close