initctl: if edit cannot find the file, list available ones

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-27 20:13:57 +01:00
1 parent 0d52583624
commit 510bd1ac0b
1 file changed
+1 -1
+1 -1
View File
@@ -260,7 +260,7 @@ static int do_edit(char *arg, int creat)
if (!fexist(fn)) {
if (!creat) {
warnx("Cannot find %s, use create command, or select one of:", arg);
return serv_list(NULL);
return serv_list("available");
}
/* XXX: fill with template/commented-out examples */