Updated error messgae

This commit is contained in:
2021-05-18 19:29:42 +02:00
parent ab40248d48
commit ed0ad39abd

View File

@ -142,7 +142,7 @@ fn endpoint_handler(
let buf = match usimp::endpoint(endpoint, input) {
Ok(output) => output.to_string() + "\r\n",
Err(e) => "{\"status\":\"error\"}\r\n".to_string(),
Err(e) => format!("{{\"status\":\"error\",\"message\":\"{}\"}}\r\n", e),
};
// TODO compress