make error toast display detailed message

replace invite accept error message with the one from upstream
check if config mail is enabled
This commit is contained in:
Olivier Martin
2021-04-12 21:54:57 -04:00
parent d75a80bd2d
commit 1db37bf3d0
3 changed files with 13 additions and 11 deletions

View File

@@ -166,7 +166,7 @@ fn _serialize(e: &impl serde::Serialize, _msg: &str) -> String {
fn _api_error(_: &impl std::any::Any, msg: &str) -> String {
let json = json!({
"Message": "",
"Message": msg,
"error": "",
"error_description": "",
"ValidationErrors": {"": [ msg ]},