Skip to content
Permalink
Browse files
Merge branch 'master' of github.com:EngineHub/CommandHelper
  • Loading branch information
PseudoKnight committed Jun 9, 2020
2 parents 9f294f4 + 3661ebd commit d7897501efa911857a6419b1d0eabf976d38a49b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -1743,7 +1743,7 @@ public CVoid execs(Target t, Environment env, Script parent, ParseTree... nodes)
// Handle compile exceptions.
if(exceptions.size() == 1) {
ConfigCompileException ex = exceptions.iterator().next();
String fileName = (ex.getFile() == null ? "Unknown Source" : file.getName());
String fileName = (ex.getFile() == null ? "Unknown Source" : ex.getFile().getName());
throw new CREIncludeException(
"There was a compile error when trying to include the script at " + file
+ "\n" + ex.getMessage() + " :: " + fileName + ":" + ex.getLineNum(), t);
@@ -79,7 +79,7 @@ public static ParseTree get(File file, com.laytonsmith.core.environments.Environ
ANALYSIS_CACHE.put(file, staticAnalysis);
return tree;
} catch (ConfigCompileException ex) {
String fileName = (ex.getFile() == null ? "Unknown Source" : file.getName());
String fileName = (ex.getFile() == null ? "Unknown Source" : ex.getFile().getName());
throw new CREIncludeException("There was a compile error when trying to include the script at " + file
+ "\n" + ex.getMessage() + " :: " + fileName + ":" + ex.getLineNum(), t);
} catch (ConfigCompileGroupException exs) {

0 comments on commit d789750

Please sign in to comment.