diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-06-29 14:46:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-06-29 19:16:34 +0200 |
commit | 7172ce231f4cef66465a4384399460e00b717d41 (patch) | |
tree | 57cf883aaf79c55a76e6744e76f04d4cb2ecf4a4 | |
parent | 2f0e5828e7c24b0776313f4bf4628126ccb307c2 (diff) |
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.
-rw-r--r-- | whatmaps/systemd.py | 4 |
1 files 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 <agx@sigxcpu.org> +# (C) 2014,2015 Guido Günther <agx@sigxcpu.org> # 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])) |