bcachefs: Improve an error message

Update an error message to use bch2_err_str().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-08-06 23:02:09 -04:00 committed by Kent Overstreet
parent 49e401fa55
commit 15f11c1aa8

View file

@ -674,7 +674,7 @@ static void __bch2_write_index(struct bch_write_op *op)
if (ret) {
bch_err_inum_ratelimited(c, op->pos.inode,
"write error %i from btree update", ret);
"write error while doing btree update: %s", bch2_err_str(ret));
goto err;
}
}