summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-17 08:27:12 -0700
committerKeith Packard <keithp@keithp.com>2016-06-17 08:27:12 -0700
commit383dec4449f8160c06804fba06290e7a07335934 (patch)
tree1df5d92ce83ec59f6ba575ff5a0efec311bd5e0f
parente8250fcb267a34fbbd8b88c6dcc8eec419bbcc68 (diff)
altosui: Print filename before attempting to parse in --summary mode
Any problems handling the file are easier to debug if the filename is visible above the error message. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosUI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java
index f50c32e3..fa259906 100644
--- a/altosui/AltosUI.java
+++ b/altosui/AltosUI.java
@@ -492,8 +492,8 @@ public class AltosUI extends AltosUIFrame {
if (states == null)
return false;
try {
- AltosFlightStats stats = new AltosFlightStats(states);
System.out.printf("%s:\n", file.toString());
+ AltosFlightStats stats = new AltosFlightStats(states);
if (stats.serial != AltosLib.MISSING)
System.out.printf("Serial: %5d\n", stats.serial);
if (stats.flight != AltosLib.MISSING)