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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user