diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-08-03 13:59:56 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-08-03 13:59:56 +0200 |
| commit | 4058f36268d4233ae755f7de2ed16c893f649ffa (patch) | |
| tree | 45237500e7979c827ada65a7cc9129718ddc39c1 /src/main/java/com/c2kernel/scripting/Script.java | |
| parent | c9b9cea6d6c59107ab3a6a67a81e8e3862b41fce (diff) | |
Logging and error message clean-up
Logger.debug(String) now deprecated so they're easier to spot when left
in.
Diffstat (limited to 'src/main/java/com/c2kernel/scripting/Script.java')
| -rw-r--r-- | src/main/java/com/c2kernel/scripting/Script.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/c2kernel/scripting/Script.java b/src/main/java/com/c2kernel/scripting/Script.java index 7e40003..c517291 100644 --- a/src/main/java/com/c2kernel/scripting/Script.java +++ b/src/main/java/com/c2kernel/scripting/Script.java @@ -123,7 +123,7 @@ public class Script }
catch (ObjectNotFoundException e)
{
- throw new ScriptingEngineException("Script "+scriptName+" not found");
+ throw new ScriptingEngineException("Script '"+scriptName+"' not found");
}
}
@@ -200,9 +200,9 @@ public class Script addIncludedInputParam(includeParam.getName(), includeParam.getType());
}
} catch (NumberFormatException e) {
- throw new ScriptParsingException("Invalid version in imported script "+includeName+"_"+includeVersion);
+ throw new ScriptParsingException("Invalid version in imported script name:'"+includeName+"', version:'"+includeVersion+"'");
} catch (ScriptingEngineException e) {
- throw new ScriptParsingException("Error parsing imported script "+includeName+"_"+includeVersion+": "+e.getMessage());
+ throw new ScriptParsingException("Error parsing imported script '"+includeName+"', version '"+includeVersion+"': "+e.getMessage());
}
|
