Skip to content

Commit bb6207a

Browse files
committed
More specific errors when opening files
1 parent a8d6ad3 commit bb6207a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class NewsApp : Gtk.Application {
4646
try {
4747
((MainWindow)window).add_feed(Feed.from_file(file));
4848
} catch(Error err) {
49-
stderr.puts("Could not open file\n");
50-
((MainWindow)window).show_error("Could not open file");
49+
stderr.puts("Could not open file: " + file.get_basename() + "\n");
50+
((MainWindow)window).show_error("Could not open file: " + file.get_basename());
5151
}
5252
}
5353
window.present();

0 commit comments

Comments
 (0)