diff options
-rw-r--r-- | src/import/import-dkr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/import/import-dkr.c b/src/import/import-dkr.c index e7dbe0f662..05b10621bc 100644 --- a/src/import/import-dkr.c +++ b/src/import/import-dkr.c @@ -822,7 +822,7 @@ static size_t dkr_import_job_write_callback(void *contents, size_t size, size_t l = fwrite(contents, size, nmemb, j->tar_stream); if (l != nmemb) { - r = -errno; + r = log_error_errno(errno, "Failed to write to tar: %m"); goto fail; } @@ -830,13 +830,14 @@ static size_t dkr_import_job_write_callback(void *contents, size_t size, size_t } if (j->payload_size + sz > PAYLOAD_MAX) { + log_error("Payload too large."); r = -EFBIG; goto fail; } p = realloc(j->payload, j->payload_size + sz); if (!p) { - r = -ENOMEM; + r = log_oom(); goto fail; } |