diff --git a/volumes.c b/volumes.c index ccfa732e..b42a4126 100644 --- a/volumes.c +++ b/volumes.c @@ -227,6 +227,8 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, int flags) fd = open(device->name, flags); if (fd < 0) { ret = -errno; + error("cannot open device '%s': %s", device->name, + strerror(errno)); goto fail; }