try to improve error messages

This commit is contained in:
Dietmar Maurer
2018-12-19 13:40:26 +01:00
parent eae8aa3aa9
commit 277fc5a3ce
3 changed files with 27 additions and 18 deletions

View File

@ -44,7 +44,7 @@ fn create_datastore(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
}
let path: PathBuf = param["path"].as_str().unwrap().into();
let _store = ChunkStore::create(path)?;
let _store = ChunkStore::create(name, path)?;
let datastore = json!({
"path": param["path"]