From 1441456d0808c7c6a6a4ea602b2f6cffe57b8e1c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 25 Mar 2012 21:30:04 +0200 Subject: [PATCH] Keep indentation for error messages with more than one line. --- tools/pakfire-multicall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5