diff --git a/src/import/pull-raw.c b/src/import/pull-raw.c index fc681fbb59..31a08eb24a 100644 --- a/src/import/pull-raw.c +++ b/src/import/pull-raw.c @@ -512,7 +512,7 @@ static void raw_pull_job_on_finished(PullJob *j) { * checksum file. */ if (j == p->raw_job) { - if (j->error == ENOMEDIUM) /* HTTP 404 */ + if (j->error == -ENOMEDIUM) /* HTTP 404 */ r = log_error_errno(j->error, "Failed to retrieve image file. (Wrong URL?)"); else r = log_error_errno(j->error, "Failed to retrieve image file."); diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c index ae763879b7..bfc218b6bc 100644 --- a/src/import/pull-tar.c +++ b/src/import/pull-tar.c @@ -430,7 +430,7 @@ static void tar_pull_job_on_finished(PullJob *j) { clear_progress_bar(/* prefix= */ NULL); if (j == p->tar_job) { - if (j->error == ENOMEDIUM) /* HTTP 404 */ + if (j->error == -ENOMEDIUM) /* HTTP 404 */ r = log_error_errno(j->error, "Failed to retrieve image file. (Wrong URL?)"); else r = log_error_errno(j->error, "Failed to retrieve image file.");