diff --git a/server/src/routes/anomalies.ts b/server/src/routes/anomalies.ts index b8b88f6..08d7ad5 100644 --- a/server/src/routes/anomalies.ts +++ b/server/src/routes/anomalies.ts @@ -100,7 +100,7 @@ async function createAnomaly(ctx: Router.IRouterContext) { ctx.response.status = 500; ctx.response.body = { code: 500, - message: 'Internal error' + message: `Anomaly creation error: ${e.message}` }; } } @@ -124,7 +124,7 @@ function deleteAnomaly(ctx: Router.IRouterContext) { ctx.response.status = 500; ctx.response.body = { code: 500, - message: 'Internal error' + message: `Anomaly deletion error: ${e.message}` }; } } diff --git a/server/src/routes/segments.ts b/server/src/routes/segments.ts index d966703..fb26cfe 100644 --- a/server/src/routes/segments.ts +++ b/server/src/routes/segments.ts @@ -66,7 +66,7 @@ async function updateSegments(ctx: Router.IRouterContext) { ctx.response.status = 500; ctx.response.body = { code: 500, - message: 'Internal error' + message: `Learning error: ${e.message}` }; } }