diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-07-23 10:10:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-23 10:10:53 +0200 |
commit | 1415e04603b7c243d70a70231d7d3eb184224597 (patch) | |
tree | fc4f6bef0fb8782665a90f015eacdb13e949cab4 /src/import/pull.c | |
parent | 771de3f506ac5b9f5846acae70d8e558d969d018 (diff) | |
parent | 476b8254d95488d09eebdbd175494aaafac23a3e (diff) |
Merge pull request #3785 from keszybz/less-return-errno
Use "return log_error_errno(...)" in more places + related fixes
Diffstat (limited to 'src/import/pull.c')
-rw-r--r-- | src/import/pull.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/pull.c b/src/import/pull.c index 72604a6a74..53b1211965 100644 --- a/src/import/pull.c +++ b/src/import/pull.c @@ -97,7 +97,7 @@ static int pull_tar(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local); else if (r > 0) { - log_error_errno(EEXIST, "Image '%s' already exists.", local); + log_error("Image '%s' already exists.", local); return -EEXIST; } } @@ -183,7 +183,7 @@ static int pull_raw(int argc, char *argv[], void *userdata) { if (r < 0) return log_error_errno(r, "Failed to check whether image '%s' exists: %m", local); else if (r > 0) { - log_error_errno(EEXIST, "Image '%s' already exists.", local); + log_error("Image '%s' already exists.", local); return -EEXIST; } } |