Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added more specific information in the error handler, which should he…

…lp distinguish between java nulls and mscript nulls, and also provides the code target.
  • Loading branch information...
commit 7c9aa65c3e718b6e43476159265ed6cc4bd521ec 1 parent fe11d4a
@LadyCailin LadyCailin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/laytonsmith/core/Script.java
View
4 src/main/java/com/laytonsmith/core/Script.java
@@ -324,13 +324,13 @@ public Construct eval(ParseTree c, final Environment env) throws CancelCommandEx
List<String> args2 = new ArrayList<String>();
for(Construct cc : args){
if(cc == null){
- args2.add("null");
+ args2.add("java-null");
} else {
args2.add(cc.getValue());
}
}
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() + "; "
+ Implementation.GetServerType().getBranding() + " version: " + version + ". Here's the stacktrace:\n" + TermColors.RESET;
emsg += Static.GetStacktraceString(e);
Please sign in to comment.
Something went wrong with that request. Please try again.