aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis/system_requirements.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2026-05-11 15:47:09 -0400
committerGitHub <noreply@github.com>2026-05-11 15:47:09 -0400
commit4649a889a916aa377ebd3ca8f3daa9ac703baa34 (patch)
tree993173328bdf96eb469c2412241f202cdbc5cf53 /src/cli/stasis/system_requirements.c
parent58d3ca17dcd3f8b3aeb50b8e4f24afc76d33ff26 (diff)
parentb7a60c5bed989a52a53b8b697203f55367f55a89 (diff)
downloadstasis-4649a889a916aa377ebd3ca8f3daa9ac703baa34.tar.gz
Merge pull request #143 from jhunkeler/use-sys-macros
Replace msg, perror, and fprintf with SYS message macros
Diffstat (limited to 'src/cli/stasis/system_requirements.c')
-rw-r--r--src/cli/stasis/system_requirements.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/stasis/system_requirements.c b/src/cli/stasis/system_requirements.c
index ebfbffc..02889da 100644
--- a/src/cli/stasis/system_requirements.c
+++ b/src/cli/stasis/system_requirements.c
@@ -32,7 +32,7 @@ void check_system_requirements(struct Delivery *ctx) {
for (size_t i = 0; tools_required[i] != NULL; i++) {
msg(STASIS_MSG_L3, "%s: ", tools_required[i]);
if (!find_program(tools_required[i])) {
- msg(STASIS_MSG_ERROR, "'%s' must be installed.\n", tools_required[i]);
+ SYSERROR("'%s' must be installed.", tools_required[i]);
exit(1);
}
msg(STASIS_MSG_RESTRICT, "found\n");
@@ -62,7 +62,7 @@ void check_system_requirements(struct Delivery *ctx) {
globals.enable_docker = false;
}
} else {
- msg(STASIS_MSG_L2 | STASIS_MSG_WARN, "Docker is broken\n");
+ SYSWARN("Docker is broken");
// disable docker builds
globals.enable_docker = false;
}
@@ -77,7 +77,7 @@ void check_system_path() {
char *pathvar = NULL;
pathvar = getenv("PATH");
if (!pathvar) {
- msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "PATH variable is not set. Cannot continue.\n");
+ SYSERROR("PATH variable is not set. Cannot continue.");
exit(1);
}
} \ No newline at end of file