From ed0ad39abd861a651960a2e2e01d6ef3aa043603 Mon Sep 17 00:00:00 2001
From: Lorenz Stechauner <lorenz.stechauner@necronda.net>
Date: Tue, 18 May 2021 19:29:42 +0200
Subject: [PATCH] Updated error messgae

---
 src/http/handler.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http/handler.rs b/src/http/handler.rs
index 1c0a4fd..1deb136 100644
--- a/src/http/handler.rs
+++ b/src/http/handler.rs
@@ -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