]> git.sven.stormbind.net Git - sven/exfat-utils.git/blobdiff - libexfat/io.c
Merge branch 'master' of ssh://git.sven.stormbind.net/home/sven/www/sven_htdocs/git...
[sven/exfat-utils.git] / libexfat / io.c
index 3d63fa915099ca8df4dd009826102dee91fc0680..25988f0a97ac84910e44abe993ef0984e10f36b4 100644 (file)
@@ -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)