Skip to content

Commit

Permalink
improving the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Dec 1, 2009
1 parent e614ad4 commit 5b4738c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/youdebug/YouDebug.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void main(String[] args) throws Exception {
}
}

public int run() throws CmdLineException, IOException, IllegalConnectorArgumentsException, InterruptedException, AgentInitializationException, AgentLoadException, AttachNotSupportedException {
public int run() throws Exception {
ensureJDILoaded();

if (debugLevel>0) {
Expand Down Expand Up @@ -123,7 +123,7 @@ private void ensureJDILoaded() throws CmdLineException, MalformedURLException {
if (!toolsJar.exists()) {
toolsJar = new File(new File(home), "../Classes/classes.jar");
if (!toolsJar.exists())
throw new CmdLineException("This tool requires a JDK, but you are running Java from "+home);
throw new CmdLineException("Specify the location of tools.jar via -toolsJar, or run this tool with JDK (your java home is at "+home+')');
}
}
if (!toolsJar.exists())
Expand Down

0 comments on commit 5b4738c

Please sign in to comment.