diff --git a/datastore/fsds.nim b/datastore/fsds.nim index 233bce0..f82b7b3 100644 --- a/datastore/fsds.nim +++ b/datastore/fsds.nim @@ -133,7 +133,7 @@ method get*(self: FSDatastore, key: Key): Future[?!seq[byte]] {.async.} = return failure "Path is protected!" if not fileExists(path): - return success(newSeq[byte]()) + return failure(newException(DatastoreKeyNotFound, "Key doesn't exist")) var file: File