include script path in script compile errors

This commit is contained in:
dfsek
2021-10-17 11:16:41 -07:00
parent 18bc083431
commit d7811959fa

View File

@@ -45,7 +45,7 @@ public class TerraScriptAddon extends TerraAddon {
event.getPack().getRegistryFactory().create());
structureRegistry.register(structureScript.getID(), structureScript);
} catch(ParseException e) {
throw new LoadException("Failed to load script: ", e);
throw new LoadException("Failed to load script \"" + entry.getKey() + "\"", e);
}
}
}).close();