From: Keith Packard Date: Fri, 17 Jun 2016 15:27:12 +0000 (-0700) Subject: altosui: Print filename before attempting to parse in --summary mode X-Git-Tag: 1.6.4~1^2~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=383dec4449f8160c06804fba06290e7a07335934;ds=sidebyside 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 --- 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)