summaryrefslogtreecommitdiff
path: root/src/resolve-host
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve-host')
-rw-r--r--src/resolve-host/resolve-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index 457b3e2d31..a3c7f96c9e 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -514,7 +514,7 @@ static int parse_argv(int argc, char *argv[]) {
case 'i':
arg_ifindex = if_nametoindex(optarg);
if (arg_ifindex <= 0) {
- log_error("Unknown interfaces %s: %m", optarg);
+ log_error_errno(errno, "Unknown interfaces %s: %m", optarg);
return -errno;
}
break;