From b7a60c5bed989a52a53b8b697203f55367f55a89 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 11 May 2026 15:24:53 -0400 Subject: Replace msg, perror, and fprintf with SYS message macros --- src/lib/delivery/delivery_export.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/delivery/delivery_export.c') 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); } } -- cgit