summaryrefslogtreecommitdiff
path: root/morphlib/__init__.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:00:52 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:00:52 +0100
commit8185ac21732bcc784b678da5954ab3cf16078fa8 (patch)
tree412c651f2aac7395312617b2fd5c81d42098cc41 /morphlib/__init__.py
parentff7327e84f75e14363ba2790b54ceed257a5f25e (diff)
downloadmorph-8185ac21732bcc784b678da5954ab3cf16078fa8.tar.gz
Add morphlib.Error and make local repo cache exceptions be based on it
This way, cliapp will automatically print an error message, rather than a stack trace.
Diffstat (limited to 'morphlib/__init__.py')
-rw-r--r--morphlib/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py
index d110296d..121c9431 100644
--- a/morphlib/__init__.py
+++ b/morphlib/__init__.py
@@ -17,6 +17,14 @@
'''Baserock library.'''
+import cliapp
+
+
+class Error(cliapp.AppException):
+
+ '''Base for all morph exceptions that cause user-visible messages.'''
+
+
import artifact
import artifactresolver
import bins