Signed-off-by: Weixie Cui <cuiweixie@gmail.com>
* 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.");
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.");