X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=libexfat%2Fio.c;fp=libexfat%2Fio.c;h=25988f0a97ac84910e44abe993ef0984e10f36b4;hb=042b8730107c95bfe994cfe33fb6cbf64316d1bd;hp=3d63fa915099ca8df4dd009826102dee91fc0680;hpb=7b07495e52f49ffaa0554070107b55cfaac46438;p=sven%2Ffuse-exfat.git

diff --git a/libexfat/io.c b/libexfat/io.c
index 3d63fa9..25988f0 100644
--- a/libexfat/io.c
+++ b/libexfat/io.c
@@ -39,7 +39,8 @@ int exfat_open(const char* spec, int ro)
 	fd = open(spec, ro ? O_RDONLY : O_RDWR);
 	if (fd < 0)
 	{
-		exfat_error("failed to open `%s'", spec);
+		exfat_error("failed to open `%s' in read-%s mode", spec,
+				ro ? "only" : "write");
 		return -1;
 	}
 	if (fstat(fd, &stbuf) != 0)