error flattening, remain to details, and delete old config stuff

This commit is contained in:
Matt Hill
2021-08-09 13:39:30 -06:00
committed by Aiden McClelland
parent ae09f5a4f2
commit 6a9ec0ea05
26 changed files with 42 additions and 754 deletions

View File

@@ -192,7 +192,7 @@ impl From<std::net::AddrParseError> for Error {
impl From<Error> for RpcError {
fn from(e: Error) -> Self {
let mut data_object = serde_json::Map::with_capacity(2);
data_object.insert("message".to_owned(), format!("{}", e.source).into());
data_object.insert("details".to_owned(), format!("{}", e.source).into());
data_object.insert(
"revision".to_owned(),
match serde_json::to_value(&e.revision) {