From e6ef4684ad681c96a9fe5838d0ebcf544c126354 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 5 Feb 2024 02:31:07 -0800 Subject: [PATCH] create_work: error out if missing input template file --- tools/create_work.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/create_work.cpp b/tools/create_work.cpp index eb58f2b575..0809b37f8a 100644 --- a/tools/create_work.cpp +++ b/tools/create_work.cpp @@ -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;