summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c
index f36f6c4c9e..5274bcc106 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1003,10 +1003,8 @@ static int parse_argv(int argc, char *argv[]) {
FILE *f;
fd = parse_fd(optarg);
- if (fd == -ERANGE)
- return log_error_errno(fd, "Invalid serialization fd: %s", optarg);
if (fd < 0)
- return log_error_errno(fd, "Failed to parse deserialize option \"%s\": %m", optarg);
+ return log_error_errno(fd, "Failed to parse serialization fd \"%s\": %m", optarg);
(void) fd_cloexec(fd, true);