diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-06-24 07:09:51 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-06-24 07:15:21 -0700 |
| commit | 54fccd71fbdc60adf99b9a9bf4712c121d4312ba (patch) | |
| tree | d51eb84344c0433e12335b1000ce3526b1368cf8 /error.py | |
| parent | fb5c8fd948dea211cd8f43477855de44c273a1bf (diff) | |
| download | git-repo-54fccd71fbdc60adf99b9a9bf4712c121d4312ba.tar.gz | |
Document any crashes from the user's text editorv1.6.8.4
Rather than failing with no information, display the child exit
status and the command line we tried to use to edit a text file.
There may be some useful information to help understand the crash.
Signed-off-by: Shawn O. Pearce <sop@google.com>
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. |
