aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-02-04 09:33:18 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-02-04 09:33:18 -0500
commit672cdfa07cf83fec396836cbe1ba1415e5764ebf (patch)
tree4fbb27c9b2c15499a29bd3c7ddb084ee4706de60
parenta897adba3b034234f9ed8d1759f63b78f0ce5023 (diff)
downloadstasis-672cdfa07cf83fec396836cbe1ba1415e5764ebf.tar.gz
Improve message on memory error
-rw-r--r--src/lib/delivery/delivery_populate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_populate.c b/src/lib/delivery/delivery_populate.c
index e9aea89..f14016a 100644
--- a/src/lib/delivery/delivery_populate.c
+++ b/src/lib/delivery/delivery_populate.c
@@ -34,7 +34,7 @@ int populate_info(struct Delivery *ctx) {
ctx->info.time_str_epoch = calloc(STASIS_TIME_STR_MAX, sizeof(*ctx->info.time_str_epoch));
if (!ctx->info.time_str_epoch) {
- msg(STASIS_MSG_ERROR, "Unable to allocate memory for Unix epoch string\n");
+ msg(STASIS_MSG_ERROR, "%s: Unable to allocate memory for Unix epoch string\n", strerror(errno));
return -1;
}
snprintf(ctx->info.time_str_epoch, STASIS_TIME_STR_MAX - 1, "%li", ctx->info.time_now);