Skip to content

Commit

Permalink
Added more specific information in the error handler, which should he…
Browse files Browse the repository at this point in the history
…lp distinguish between java nulls and mscript nulls, and also provides the code target.
  • Loading branch information
LadyCailin committed Mar 27, 2013
1 parent fe11d4a commit 7c9aa65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/laytonsmith/core/Script.java
Expand Up @@ -324,13 +324,13 @@ public Construct eval(ParseTree c, final Environment env) throws CancelCommandEx
List<String> args2 = new ArrayList<String>(); List<String> args2 = new ArrayList<String>();
for(Construct cc : args){ for(Construct cc : args){
if(cc == null){ if(cc == null){
args2.add("null"); args2.add("java-null");
} else { } else {
args2.add(cc.getValue()); args2.add(cc.getValue());
} }
} }
emsg += StringUtils.Join(args2, ", "); emsg += StringUtils.Join(args2, ", ");
emsg += ")\n" + TermColors.RED + "Please report this error to the developers, and be sure to include the version numbers: Server version: " emsg += ")\n" + TermColors.RED + "on or around " + m.getTarget() + ".\nPlease report this error to the developers, and be sure to include the version numbers: Server version: "
+ StaticLayer.GetConvertor().GetServer().getModVersion() + "; " + StaticLayer.GetConvertor().GetServer().getModVersion() + "; "
+ Implementation.GetServerType().getBranding() + " version: " + version + ". Here's the stacktrace:\n" + TermColors.RESET; + Implementation.GetServerType().getBranding() + " version: " + version + ". Here's the stacktrace:\n" + TermColors.RESET;
emsg += Static.GetStacktraceString(e); emsg += Static.GetStacktraceString(e);
Expand Down

0 comments on commit 7c9aa65

Please sign in to comment.