show file name in invalid file dialog

This commit is contained in:
Craig Raw 2024-03-06 14:17:15 +02:00
parent c034dbe89e
commit 9e4eed965c

View file

@ -636,7 +636,7 @@ public class AppController implements Initializable {
} catch(TransactionParseException e) {
showErrorDialog("Invalid transaction", e.getMessage());
} catch(Exception e) {
showErrorDialog("Invalid file", "Cannot recognise the format of this file.");
showErrorDialog("Invalid file", "Cannot recognise the format of the " + file.getName() + " file.");
}
}
}