core: add a couple of more error cases that should result in "bad-setting"

This changes a number of EINVAL cases to ENOEXEC, so that we enter
"bad-setting" state if they fail.
This commit is contained in:
Lennart Poettering
2018-06-11 12:53:12 +02:00
parent 9a0abfa8aa
commit 6f40aa4547
11 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ static int timer_verify(Timer *t) {
if (!t->values) {
log_unit_error(UNIT(t), "Timer unit lacks value setting. Refusing.");
return -EINVAL;
return -ENOEXEC;
}
return 0;