core: rework error messages in unit_add_name()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 May 2020 09:22:14 +0000 (11:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Jun 2020 07:42:20 +0000 (09:42 +0200)
commitada4b34ec7159e01af11068f99b28cce8a891ad1
treeac48ef1ae71cbe93c71ade742789170bb53c6112
parentd383acad25f7f57692f88326e5505e9194ffe6dc
core: rework error messages in unit_add_name()

They were added recently in acd1987a1867fc3390ef2516962b2313cbeb366e. We can
make them more informative by using unit_type_to_string() and not repeating
unit names as much. Also, %m should not be used together with SYNTHETIC_ERRNO().
src/core/unit.c