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; } /*