From dbf81349ff8634df6ede0afb44ca3cda974749fc Mon Sep 17 00:00:00 2001 From: LittleCube Date: Wed, 11 Sep 2024 02:53:12 -0400 Subject: [PATCH] Show error when zip command is not found by linux --- RecompModTool/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RecompModTool/main.cpp b/RecompModTool/main.cpp index 065bf2b..30faa7a 100644 --- a/RecompModTool/main.cpp +++ b/RecompModTool/main.cpp @@ -973,7 +973,9 @@ bool create_mod_zip(const std::filesystem::path& output_dir, const ModConfig& co } else if (pid == 0) { // This is the child process, so exec zip with the arguments. - execvp(arg_pointers[0], arg_pointers.data()); + if (execvp(arg_pointers[0], arg_pointers.data()) == -1) { + fmt::print(stderr, "Failed to run \"zip\" ({})\n", errno); + } } else { // This is the parent process, so wait for the child process to complete and check its exit code.