[transmageddon] Add error messages when using multiple files or nonexisting files
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [transmageddon] Add error messages when using multiple files or nonexisting files
- Date: Sat, 15 Mar 2014 11:42:58 +0000 (UTC)
commit f503a2a8b286a287f0efa4d51fe1f5658809a56d
Author: Alberto Ruiz <aruiz gnome org>
Date: Sat Mar 15 12:40:43 2014 +0100
Add error messages when using multiple files or nonexisting files
src/transmageddon.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index f6bbc8f..e116b59 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -157,12 +157,11 @@ class Transmageddon(Gtk.Application):
self.win.show_all ()
def do_open(self, files, i, hint):
- #TODO: Warning on multiple files
if len(files) > 1:
- pass
+ print("Multiple files not supported, using %s" % files[0].get_path())
if not files[0].query_exists(None):
- #TODO: Log an error
+ print("%s doesn't exist" % files[0].get_path())
return
self.source = files[0].get_path()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]