equal
deleted
inserted
replaced
177 def __str__(self): |
177 def __str__(self): |
178 # the output would be unreadable if the message was translated, |
178 # the output would be unreadable if the message was translated, |
179 # but do not replace it with encoding.strfromlocal(), which |
179 # but do not replace it with encoding.strfromlocal(), which |
180 # may raise another exception. |
180 # may raise another exception. |
181 return pycompat.sysstr(self.__bytes__()) |
181 return pycompat.sysstr(self.__bytes__()) |
|
182 |
|
183 |
|
184 class InputError(Abort): |
|
185 """Indicates that the user made an error in their input. |
|
186 |
|
187 Examples: Invalid command, invalid flags, invalid revision. |
|
188 """ |
182 |
189 |
183 |
190 |
184 class HookLoadError(Abort): |
191 class HookLoadError(Abort): |
185 """raised when loading a hook fails, aborting an operation |
192 """raised when loading a hook fails, aborting an operation |
186 |
193 |