From 7172ce231f4cef66465a4384399460e00b717d41 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 29 Jun 2015 14:46:34 +0200 Subject: Don't print overly long error message In the systemd case So far we dumped the whole output of the status command. Only dump the pats we actually looked at. --- whatmaps/systemd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whatmaps/systemd.py b/whatmaps/systemd.py index 3407128..ef15a26 100644 --- a/whatmaps/systemd.py +++ b/whatmaps/systemd.py @@ -1,6 +1,6 @@ # vim: set fileencoding=utf-8 : # -# (C) 2014 Guido Günther +# (C) 2014,2015 Guido Günther # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or @@ -44,4 +44,4 @@ class Systemd(object): elif parts[1].endswith('.service'): return parts[1] else: - raise ValueError("Can't parse service name from\n%s" % output) + raise ValueError("Can't parse service name from: (%s %s)" % (parts[0], parts[1])) -- cgit v1.2.3