From b6cdbc92699f3226cb8488ada7f347f6972d80b5 Mon Sep 17 00:00:00 2001 From: mkersten Date: Sun, 1 Jun 2003 03:58:12 +0000 Subject: [PATCH] Expanded error message to make it clear that it is coming from parsing. --- .../src/org/aspectj/ajdt/ajc/BuildArgParser.java | 2 +- util/src/org/aspectj/util/ConfigParser.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java index c5dd98dea..415d0a977 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java @@ -474,7 +474,7 @@ public class BuildArgParser extends Main { } public void showError(String message) { - MessageUtil.error(handler, message); + MessageUtil.error(handler, CONFIG_MSG + message); } protected void showWarning(String message) { 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) { -- 2.39.5