mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 18:37:57 +00:00
Fixed AS1/2 Direct editation mark line on error
This commit is contained in:
@@ -1082,8 +1082,12 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, "IOException during action compiling", ex);
|
||||
} catch (ActionParseException ex) {
|
||||
decompiledEditor.gotoLine((int) ex.line);
|
||||
decompiledEditor.markError();
|
||||
View.showMessageDialog(this, AppStrings.translate("error.action.save").replace("%error%", ex.text).replace("%line%", Long.toString(ex.line)), AppStrings.translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
} catch (CompilationException ex) {
|
||||
decompiledEditor.gotoLine((int) ex.line);
|
||||
decompiledEditor.markError();
|
||||
View.showMessageDialog(this, AppStrings.translate("error.action.save").replace("%error%", ex.text).replace("%line%", Long.toString(ex.line)), AppStrings.translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
} catch (Throwable ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
|
||||
Reference in New Issue
Block a user