aboutsummaryrefslogtreecommitdiff
path: root/src/lib/delivery/delivery_export.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/lib/delivery/delivery_export.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/lib/delivery/delivery_export.c')
-rw-r--r--src/lib/delivery/delivery_export.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/delivery/delivery_export.c b/src/lib/delivery/delivery_export.c
index a973875..0321050 100644
--- a/src/lib/delivery/delivery_export.c
+++ b/src/lib/delivery/delivery_export.c
@@ -14,7 +14,7 @@ static void delivery_export_configuration(const struct Delivery *ctx) {
SYSDEBUG("%s: opening", filename);
FILE *spec = fopen(filename, "w+");
if (!spec) {
- msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", filename);
+ SYSERROR("open failed %s", filename);
exit(1);
}
SYSDEBUG("%s: writing", filename);
@@ -32,7 +32,7 @@ static void delivery_export_configuration(const struct Delivery *ctx) {
SYSDEBUG("%s: opening", filename);
spec = fopen(filename, "w+");
if (!spec) {
- msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", filename);
+ SYSERROR("open failed %s", filename);
exit(1);
}
SYSDEBUG("%s: writing", filename);
@@ -55,7 +55,7 @@ void delivery_export(const struct Delivery *ctx, char *envs[]) {
char *name = envs[i];
msg(STASIS_MSG_L2, "Exporting %s\n", name);
if (conda_env_export(name, ctx->storage.delivery_dir, name)) {
- msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "failed %s\n", name);
+ SYSERROR("export failed %s", name);
exit(1);
}
}