X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Ffuse-exfat.git;a=blobdiff_plain;f=libexfat%2Fio.c;h=25988f0a97ac84910e44abe993ef0984e10f36b4;hp=3d63fa915099ca8df4dd009826102dee91fc0680;hb=a4248d0ee882aa5a48a1d74ca0162032c5a7d65e;hpb=65e85a0acdb22bd25386f4fe9cde50c66339a496 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)