#1484 AS import error import on commandline fix

This commit is contained in:
Jindra Petřík
2018-09-08 15:23:49 +02:00
parent 797c9b13bd
commit 16f0bfc2db
2 changed files with 6 additions and 1 deletions

View File

@@ -3651,7 +3651,11 @@ public class CommandLineArgumentParser {
pack.abc.replaceScriptPack(scriptReplacer, pack, as);
} catch (As3ScriptReplaceException asre) {
for (As3ScriptReplaceExceptionItem item : asre.getExceptionItems()) {
logger.log(Level.SEVERE, "%error% on line %line%, column %col%, file: %file%".replace("%error%", item.getMessage()).replace("%line%", Long.toString(item.getLine())).replace("%file%", item.getFile()).replace("%col%", "" + item.getCol()));
String r = "%error% on line %line%, column %col%, file: %file%".replace("%error%", "" + item.getMessage());
r = r.replace("%line%", Long.toString(item.getLine()));
r = r.replace("%file%", "" + item.getFile());
r = r.replace("%col%", "" + item.getCol());
logger.log(Level.SEVERE, r);
}
System.exit(1);
}