From 383dec4449f8160c06804fba06290e7a07335934 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 17 Jun 2016 08:27:12 -0700 Subject: [PATCH] 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 --- altosui/AltosUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2