summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index f9ee8121..01780ff6 100644
--- a/utils.c
+++ b/utils.c
@@ -1229,7 +1229,8 @@ scan_again:
fd = open(fullpath, O_RDONLY);
if (fd < 0) {
- fprintf(stderr, "failed to read %s\n", fullpath);
+ fprintf(stderr, "failed to open %s: %s\n",
+ fullpath, strerror(errno));
continue;
}
ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices,