[systemd-bugs] [Bug 87249] New: systemctl error messages contain no context
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Dec 11 14:27:46 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=87249
Bug ID: 87249
Summary: systemctl error messages contain no context
Product: systemd
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: morten.hustveit at gmail.com
QA Contact: systemd-bugs at lists.freedesktop.org
Observed behavior:
[bob at a00:~]$ sudo systemctl enable /foo/bar.service
Failed to execute operation: Invalid argument
Expected behvaior:
[bob at a00:~]$ sudo systemctl enable /foo/bar.service
Unable to create symbolic link /etc/systemd/system/bar.service: target already
exists
Details:
It seems that the systemd code generally passes error information as a single
numeric code, even across contexts where the caller cannot know what the error
code applies to. This problem is further exacerbated by systemctl itself not
doing any work; attempting to run systemctl under strace will not reveal
additional context.
I would suggest making a per-thread error description string that takes
precedence over errno if set, maybe something like this:
https://gist.github.com/mortehu/df056c55958723b6836e
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141211/39cf90ac/attachment.html>
More information about the systemd-bugs
mailing list