summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-common-errors.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-24 16:02:48 +0100
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:29 +0200
commit7bfe3d44d008f46d65ebdf5adc0c847b45fd4ab2 (patch)
treeeb9cc09f0cf1c6bddc4b33fe3272a4145d5c1012 /src/libsystemd/sd-bus/bus-common-errors.c
parentf413930863ab3b98cb7bf9e761081b4e88a5d7d9 (diff)
core: when enabling a generated unit file, return a clean error
Let's be precise when the user tries to invoke an "enable" operation on a generated unit file.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-common-errors.c')
-rw-r--r--src/libsystemd/sd-bus/bus-common-errors.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-common-errors.c b/src/libsystemd/sd-bus/bus-common-errors.c
index 6370061daf..f16878cd1a 100644
--- a/src/libsystemd/sd-bus/bus-common-errors.c
+++ b/src/libsystemd/sd-bus/bus-common-errors.c
@@ -38,6 +38,7 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
SD_BUS_ERROR_MAP(BUS_ERROR_TRANSACTION_ORDER_IS_CYCLIC, EDEADLK),
SD_BUS_ERROR_MAP(BUS_ERROR_TRANSACTION_IS_DESTRUCTIVE, EDEADLK),
SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_MASKED, ESHUTDOWN),
+ SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_GENERATED, EADDRNOTAVAIL),
SD_BUS_ERROR_MAP(BUS_ERROR_JOB_TYPE_NOT_APPLICABLE, EBADR),
SD_BUS_ERROR_MAP(BUS_ERROR_NO_ISOLATION, EPERM),
SD_BUS_ERROR_MAP(BUS_ERROR_SHUTTING_DOWN, ECANCELED),