[transmageddon] Add error messages when using multiple files or nonexisting files



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]