From c4b235065887178f45c5b548c36ad7065b48afb4 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 29 Apr 2002 23:38:04 +0000 Subject: [PATCH] because a screwed up build.compiler only gives an error message like "false can't be found." git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272596 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/taskdefs/compilers/CompilerAdapterFactory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java b/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java index 90d65bac4..17cd27748 100644 --- a/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java +++ b/src/main/org/apache/tools/ant/taskdefs/compilers/CompilerAdapterFactory.java @@ -191,14 +191,15 @@ public class CompilerAdapterFactory { Object o = c.newInstance(); return (CompilerAdapter) o; } catch (ClassNotFoundException cnfe) { - throw new BuildException(className + " can\'t be found.", cnfe); + throw new BuildException("Compiler Adapter "+className + + " can\'t be found.", cnfe); } catch (ClassCastException cce) { throw new BuildException(className + " isn\'t the classname of " + "a compiler adapter.", cce); } catch (Throwable t) { // for all other possibilities - throw new BuildException(className + " caused an interesting " - + "exception.", t); + throw new BuildException("Compiler Adapter "+className + + " caused an interesting exception.", t); } }