diff options
author | Keith Packard <keithp@keithp.com> | 2016-06-17 08:27:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-06-17 08:27:12 -0700 |
commit | 383dec4449f8160c06804fba06290e7a07335934 (patch) | |
tree | 1df5d92ce83ec59f6ba575ff5a0efec311bd5e0f /altosui | |
parent | e8250fcb267a34fbbd8b88c6dcc8eec419bbcc68 (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>
Diffstat (limited to 'altosui')
-rw-r--r-- | altosui/AltosUI.java | 2 |
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) |