diff options
author | mkersten <mkersten> | 2003-06-01 03:58:12 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-06-01 03:58:12 +0000 |
commit | b6cdbc92699f3226cb8488ada7f347f6972d80b5 (patch) | |
tree | 17923809025660d5b0f9944bbfbc1def3be6e206 /util | |
parent | f34c03eff62dcc70981cb8bf74a428e1ee6164d4 (diff) | |
download | aspectj-b6cdbc92699f3226cb8488ada7f347f6972d80b5.tar.gz aspectj-b6cdbc92699f3226cb8488ada7f347f6972d80b5.zip |
Expanded error message to make it clear that it is coming from parsing.
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/ConfigParser.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/util/src/org/aspectj/util/ConfigParser.java b/util/src/org/aspectj/util/ConfigParser.java index dab133510..ae14e1f6f 100644 --- a/util/src/org/aspectj/util/ConfigParser.java +++ b/util/src/org/aspectj/util/ConfigParser.java @@ -22,7 +22,8 @@ public class ConfigParser { Location location; protected List files = new LinkedList(); private boolean fileParsed = false; - + protected static String CONFIG_MSG = "build config error: "; + public List getFiles() { return files; } public void parseCommandLine(String[] argsArray) throws ParseException { @@ -36,7 +37,7 @@ public class ConfigParser { public void parseConfigFile(File configFile) throws ParseException { if (fileParsed == true) { - throw new ParseException("The file has already been parsed.", null); + throw new ParseException(CONFIG_MSG + "The file has already been parsed.", null); } else { parseConfigFileHelper(configFile); } @@ -145,11 +146,11 @@ public class ConfigParser { if (location != null) { message += " at " + location.toString(); } - System.err.println(message); + System.err.println(CONFIG_MSG + message); } protected void showError(String message) { - throw new ParseException(message, location); + throw new ParseException(CONFIG_MSG + message, location); } void parseArgs(LinkedList args) { |