chiark / gitweb /
systemctl: cat, edit: improve unit load error reporting
authorIvan Shapovalov <intelfx100@gmail.com>
Wed, 4 Feb 2015 22:56:57 +0000 (01:56 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 Feb 2015 01:10:27 +0000 (20:10 -0500)
commitb5e6a600327d4e92c9fe62b9d51648a9d459871e
tree64d19db446262f0981df2a110ab44065ed8e6eb0
parent5d7afd82a159f8a781594f5538b7af35dbb9cecc
systemctl: cat, edit: improve unit load error reporting

- report actual load error for units which could not be loaded
- make unit_find_paths() report all kinds of errors it encounters
  (for consistency)
- consistently handle not-found errors in cat() and edit()
src/systemctl/systemctl.c