diff options
Diffstat (limited to 'error.py')
-rw-r--r-- | error.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,11 @@ class ManifestInvalidRevisionError(Exception): | |||
24 | class EditorError(Exception): | 24 | class EditorError(Exception): |
25 | """Unspecified error from the user's text editor. | 25 | """Unspecified error from the user's text editor. |
26 | """ | 26 | """ |
27 | def __init__(self, reason): | ||
28 | self.reason = reason | ||
29 | |||
30 | def __str__(self): | ||
31 | return self.reason | ||
27 | 32 | ||
28 | class GitError(Exception): | 33 | class GitError(Exception): |
29 | """Unspecified internal error from git. | 34 | """Unspecified internal error from git. |