diff options
author | John Garland <johnnybg+deluge@gmail.com> | 2010-06-08 01:22:19 +1000 |
---|---|---|
committer | John Garland <johnnybg+deluge@gmail.com> | 2010-06-08 01:26:49 +1000 |
commit | 7aba1af0b23164871bbc47b209d32aba8b855692 (patch) | |
tree | c8bee2e1d4b231828a4ba6de9259848ef4ea26d6 | |
parent | 4d2b7df49dde4327415ca6e8560bd558b9e77763 (diff) | |
download | deluge-7aba1af0b23164871bbc47b209d32aba8b855692.tar.gz deluge-7aba1af0b23164871bbc47b209d32aba8b855692.tar.bz2 deluge-7aba1af0b23164871bbc47b209d32aba8b855692.zip |
Print a more informative error message if the torrent file doesn't exist
-rw-r--r-- | deluge/ui/console/commands/add.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deluge/ui/console/commands/add.py b/deluge/ui/console/commands/add.py index 5af96c548..8d688187c 100644 --- a/deluge/ui/console/commands/add.py +++ b/deluge/ui/console/commands/add.py @@ -63,6 +63,9 @@ class Command(BaseCommand): # Keep a list of deferreds to make a DeferredList deferreds = [] for arg in args: + if not os.path.exists(arg): + self.console.write("{!error!}%s doesn't exist!" % arg) + continue if not os.path.isfile(arg): self.console.write("{!error!}This is a directory!") continue |