From: Michael Tremer Date: Sun, 25 Mar 2012 19:30:04 +0000 (+0200) Subject: Keep indentation for error messages with more than one line. X-Git-Tag: 0.9.22~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1441456d0808c7c6a6a4ea602b2f6cffe57b8e1c;p=pakfire.git Keep indentation for error messages with more than one line. --- diff --git a/tools/pakfire-multicall.py b/tools/pakfire-multicall.py index b7547c198..e2d8e3979 100755 --- a/tools/pakfire-multicall.py +++ b/tools/pakfire-multicall.py @@ -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