diff --git a/src/main/scala/li/cil/oc/server/fs/FileInputStreamFileSystem.scala b/src/main/scala/li/cil/oc/server/fs/FileInputStreamFileSystem.scala index aae9728ac..847091165 100644 --- a/src/main/scala/li/cil/oc/server/fs/FileInputStreamFileSystem.scala +++ b/src/main/scala/li/cil/oc/server/fs/FileInputStreamFileSystem.scala @@ -38,7 +38,7 @@ trait FileInputStreamFileSystem extends InputStreamFileSystem { case file if file.exists() && file.isFile => Array(file.getName) case directory if directory.exists() && directory.isDirectory && directory.list() != null => directory.listFiles().map(file => if (file.isDirectory) file.getName + "/" else file.getName) - case _ => throw new io.FileNotFoundException("No such file or directory: " + path) + case _ => throw new io.FileNotFoundException("no such file or directory: " + path) } // ----------------------------------------------------------------------- // diff --git a/src/main/scala/li/cil/oc/server/fs/ReadOnlyWrapper.scala b/src/main/scala/li/cil/oc/server/fs/ReadOnlyWrapper.scala index f5f7783c4..2c4a2dde5 100644 --- a/src/main/scala/li/cil/oc/server/fs/ReadOnlyWrapper.scala +++ b/src/main/scala/li/cil/oc/server/fs/ReadOnlyWrapper.scala @@ -33,8 +33,8 @@ private class ReadOnlyWrapper(val fileSystem: api.fs.FileSystem) extends api.fs. override def open(path: String, mode: Mode) = mode match { case Mode.Read => fileSystem.open(path, mode) - case Mode.Write => throw new FileNotFoundException("Read-only filesystem; cannot open for writing: " + path) - case Mode.Append => throw new FileNotFoundException("Read-only filesystem; cannot open for appending: " + path) + case Mode.Write => throw new FileNotFoundException("read-only filesystem; cannot open for writing: " + path) + case Mode.Append => throw new FileNotFoundException("read-only filesystem; cannot open for appending: " + path) } override def getHandle(handle: Int) = fileSystem.getHandle(handle)