X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fsnapshot.c;fp=src%2Fcore%2Fsnapshot.c;h=c2678cbe6e9fda13eec8bd0ad6ae5a3366c7cdfa;hb=7cabba07745b388497e8c0fc19b61984167fd474;hp=5eed615a150deee677304f7bc9afa15f1ab941ef;hpb=7358dc029ab8cb8f9d83eb847389d84f822ccfe8;p=elogind.git diff --git a/src/core/snapshot.c b/src/core/snapshot.c index 5eed615a1..c2678cbe6 100644 --- a/src/core/snapshot.c +++ b/src/core/snapshot.c @@ -208,7 +208,7 @@ int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e, return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Unit name %s lacks snapshot suffix.", name); if (manager_get_unit(m, name)) - sd_bus_error_setf(e, BUS_ERROR_UNIT_EXISTS, "Snapshot %s exists already.", name); + return sd_bus_error_setf(e, BUS_ERROR_UNIT_EXISTS, "Snapshot %s exists already.", name); } else {