aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-03-05 16:07:48 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-03-05 16:07:48 -0500
commit5e8a352e11497ee1e6735f69acc72f72a833fe63 (patch)
tree40bf4c5f4f511b8090e341e6f10c0ba7bf2fd0bf
parentf234b169b7e03c859c6bc7f4dc18a77bd888bb09 (diff)
downloadstasis-5e8a352e11497ee1e6735f69acc72f72a833fe63.tar.gz
Return from function on failure to read, instead of exiting the program
-rw-r--r--src/lib/delivery/delivery_populate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_populate.c b/src/lib/delivery/delivery_populate.c
index de310d1..11be8ad 100644
--- a/src/lib/delivery/delivery_populate.c
+++ b/src/lib/delivery/delivery_populate.c
@@ -375,7 +375,7 @@ int populate_mission_ini(struct Delivery **ctx, int render_mode) {
struct INIFILE *ini = (*ctx)->_stasis_ini_fp.mission;
if (!ini) {
msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "Failed to read mission configuration: %s, %s\n", missionfile, strerror(errno));
- exit(1);
+ return -1;
}
(*ctx)->_stasis_ini_fp.mission_path = strdup(missionfile);