From 6123dabd9b021a78ea51e1917a5501fab8ee163c Mon Sep 17 00:00:00 2001 From: HUAHUAI23 Date: Fri, 8 Dec 2023 03:53:43 +0000 Subject: [PATCH] fix(server): Fix logging interface error return --- server/src/log/log.controller.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/src/log/log.controller.ts b/server/src/log/log.controller.ts index ee465c2b22..714252e1ac 100644 --- a/server/src/log/log.controller.ts +++ b/server/src/log/log.controller.ts @@ -113,7 +113,14 @@ export class LogController { ).podNameList if (!podNameList.includes(podName) && podName !== 'all') { - return ResponseUtil.error('podName not exist') + return new Observable((subscriber) => { + subscriber.next( + JSON.stringify({ + error: 'podName not exist', + }) as unknown as MessageEvent, + ) + subscriber.complete() + }) } if (podName !== 'all') {