diff options
Diffstat (limited to 'cmds-replace.c')
-rw-r--r-- | cmds-replace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-replace.c b/cmds-replace.c index 1fa80284..b30e6c78 100644 --- a/cmds-replace.c +++ b/cmds-replace.c @@ -208,7 +208,8 @@ static int cmd_replace_start(int argc, char **argv) ret = get_fs_info(path, &fi_args, &di_args); if (ret) { - error("failed to get device info: %s", strerror(-ret)); + errno = -ret; + error("failed to get device info: %m"); free(di_args); goto leave_with_error; } |