give full path to json! macro

master
rascul 2 years ago
parent 5617429296
commit 218c65e851

@ -6,7 +6,7 @@ macro_rules! render_error {
match $e { match $e {
Ok(r) => r, Ok(r) => r,
Err(e) => { Err(e) => {
let data = json!({ let data = serde_json::json!({
"error": e.to_string(), "error": e.to_string(),
}); });
let body = match $hb.render("error", &data) { let body = match $hb.render("error", &data) {

Loading…
Cancel
Save