]> git.ipfire.org Git - pakfire.git/commitdiff
Keep indentation for error messages with more than one line.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Mar 2012 19:30:04 +0000 (21:30 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Mar 2012 19:30:04 +0000 (21:30 +0200)
tools/pakfire-multicall.py

index b7547c198c75f1143ac87eb577a27af352ef8fba..e2d8e39795804d205363964e62c12026abe52906 100755 (executable)
@@ -75,7 +75,9 @@ except Error, e:
        log.error("")
 
        log.error(_("Further description:"))
-       log.error("  %s" % e)
+       msg = "%s" % e
+       for line in msg.splitlines():
+               log.error("  %s" % line)
        log.error("")
 
        ret = e.exit_code