summaryrefslogtreecommitdiff
path: root/cmd_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_option.c')
-rw-r--r--cmd_option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd_option.c b/cmd_option.c
index 86768e5d..6ce34016 100644
--- a/cmd_option.c
+++ b/cmd_option.c
@@ -20,6 +20,7 @@
#include "cmds.h"
#include "libbcachefs.h"
+#include "libbcachefs/errcode.h"
#include "libbcachefs/opts.h"
#include "libbcachefs/super-io.h"
@@ -64,7 +65,7 @@ int cmd_set_option(int argc, char *argv[])
struct bch_fs *c = bch2_fs_open(argv, argc, open_opts);
if (IS_ERR(c)) {
- fprintf(stderr, "error opening %s: %s\n", argv[0], strerror(-PTR_ERR(c)));
+ fprintf(stderr, "error opening %s: %s\n", argv[0], bch2_err_str(PTR_ERR(c)));
exit(EXIT_FAILURE);
}