From 6b58ef92db0e8b0d0fd84f5589f66884824f38c7 Mon Sep 17 00:00:00 2001 From: honfika Date: Sat, 23 Aug 2014 08:47:27 +0200 Subject: [PATCH] show script name in error log --- src/com/jpexs/decompiler/flash/action/Action.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/action/Action.java b/src/com/jpexs/decompiler/flash/action/Action.java index 8e8cc46a3..5344d0d8f 100644 --- a/src/com/jpexs/decompiler/flash/action/Action.java +++ b/src/com/jpexs/decompiler/flash/action/Action.java @@ -694,7 +694,7 @@ public class Action implements GraphSourceItem { } }, timeout, TimeUnit.SECONDS); } catch (TimeoutException | ExecutionException | OutOfMemoryError | TranslateException | StackOverflowError ex) { - Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error", ex); + Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error in: " + path, ex); convertException = ex; if (ex instanceof ExecutionException && ex.getCause() instanceof Exception) { convertException = (Exception) ex.getCause(); @@ -706,10 +706,10 @@ public class Action implements GraphSourceItem { if (convertException == null) { Graph.graphToString(tree, writer, new LocalData()); } else if (convertException instanceof TimeoutException) { - Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error", convertException); + Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error in: " + path, convertException); Helper.appendTimeoutComment(writer, timeout); } else { - Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error", convertException); + Logger.getLogger(Action.class.getName()).log(Level.SEVERE, "Decompilation error in: " + path, convertException); Helper.appendErrorComment(writer, convertException); } asm.getActionSourceSuffix(writer);