mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 06:40:47 +00:00
Issue #676: include characterid and previous text of the text tag in text import error log message
This commit is contained in:
+1416
-1247
File diff suppressed because it is too large
Load Diff
+2177
-1960
File diff suppressed because it is too large
Load Diff
+1105
-1026
File diff suppressed because it is too large
Load Diff
+1057
-982
File diff suppressed because it is too large
Load Diff
+2448
-2215
File diff suppressed because it is too large
Load Diff
@@ -58,7 +58,7 @@ public class TextImporter {
|
||||
String[] records = textArr[1].split(recordSeparator);
|
||||
result.put(id, records);
|
||||
} else {
|
||||
if (errorHandler.handle()) {
|
||||
if (errorHandler.handle(null)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -175,9 +175,9 @@ public class TextImporter {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !errorHandler.handle();
|
||||
return !errorHandler.handle(textTag);
|
||||
} catch (TextParseException ex) {
|
||||
return !errorHandler.handle(ex.text, ex.line);
|
||||
return !errorHandler.handle(textTag, ex.text, ex.line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@ package com.jpexs.decompiler.flash.tags.base;
|
||||
*/
|
||||
public abstract class TextImportErrorHandler {
|
||||
|
||||
public abstract boolean handle();
|
||||
public abstract boolean handle(TextTag textTag);
|
||||
|
||||
public abstract boolean handle(String message, long line);
|
||||
public abstract boolean handle(TextTag textTag, String message, long line);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+632
-580
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user