From da66ae71c2f20272985576f039631f1512a3db15 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Sun, 20 Oct 2024 17:00:18 -0400 Subject: [PATCH] v4.0.0-rc4 - add config parsing --- libglacier.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libglacier.c b/libglacier.c index c10247c..56f9867 100644 --- a/libglacier.c +++ b/libglacier.c @@ -150,12 +150,15 @@ runtime_exists() for (f = 0; f < 3; f++) { if (access(runtime_files[f], F_OK) == 0) { - printf("%s exists\n", runtime_files[f]); + continue; } else { - printf("%s does not exist\n", runtime_files[f]); + errlog("Runtime files are missing, cannot continue with operation."); + printf(COL_RED "[x]" COL_RESET " The following files are missing:\n"); + printf(COL_RED "[x]" COL_RESET " \t%s\n", runtime_files[f]); + return 1; } } - return 1; + return 0; } /*