server/formatter.rs: fix extjs error format

This commit is contained in:
Dietmar Maurer 2019-01-28 13:44:48 +01:00
parent 02c7a75520
commit 5bb3398171

View File

@ -85,9 +85,12 @@ fn extjs_format_result(data: Value, rpcenv: &RpcEnvironment) -> Response<Body> {
fn extjs_format_error(err: Error) -> Response<Body> {
let mut errors = vec![];
errors.push(err.to_string());
let message = err.to_string();
errors.push(&message);
let result = json!({
"message": message,
"errors": errors,
"success": false
});