diff options
Diffstat (limited to 'src/cryptsetup/cryptsetup.c')
-rw-r--r-- | src/cryptsetup/cryptsetup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 10472bde26..fb08b4a1a0 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -832,10 +832,9 @@ static int run(int argc, char *argv[]) { if (argc <= 1) return help(); - if (argc < 3) { - log_error("This program requires at least two arguments."); - return -EINVAL; - } + if (argc < 3) + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), + "This program requires at least two arguments."); log_setup_service(); |