We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 646f69b commit c2d01e1Copy full SHA for c2d01e1
1 file changed
src/libvcs/exc.py
@@ -7,7 +7,7 @@ class LibVCSException(Exception):
7
8
9
class CommandError(LibVCSException):
10
- """This exception is raised on non-zero return codes."""
+ """Raised on non-zero return codes."""
11
12
def __init__(
13
self,
@@ -23,6 +23,7 @@ def __init__(
23
self.cmd = cmd
24
25
def __str__(self) -> str:
26
+ """Return command output."""
27
message = self.message.format(returncode=self.returncode, cmd=self.cmd)
28
if len(self.output.strip()):
29
message += "\n%s" % self.output
0 commit comments