Commit c13af1fc authored by Bram Schoenmakers's avatar Bram Schoenmakers Committed by Bram Schoenmakers

Change error message to something more descriptive

The error message does assume you have installed topydo through pip,
which I expect to be usually the case.

Fixes issue #150
parent ac982b13
......@@ -44,13 +44,13 @@ def main():
from topydo.ui.prompt.Prompt import PromptApplication
PromptApplication().run()
except ImportError:
error("You have to install prompt-toolkit to run prompt mode.")
error("Some additional dependencies for prompt mode were not installed, please install with 'pip install topydo[prompt]'")
elif args[0] == 'columns':
try:
from topydo.ui.columns.Main import UIApplication
UIApplication().run()
except ImportError:
error("You have to install urwid to run column mode.")
error("Some additional dependencies for column mode were not installed, please install with 'pip install topydo[columns]'")
else:
CLIApplication().run()
except IndexError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment