create_work: error out if missing input template file

This commit is contained in:
David Anderson 2024-02-05 02:31:07 -08:00
parent fd0fcbc95a
commit e6ef4684ad
1 changed files with 8 additions and 0 deletions

View File

@ -420,6 +420,14 @@ int main(int argc, char** argv) {
);
exit(1);
}
} else {
if (!use_stdin) {
fprintf(stderr,
"create_work: input template file %s doesn't exist\n",
jd.wu_template_file
);
exit(1);
}
}
jd.wu.appid = app.id;