From 595d392af4d293dca2639f251c6bcdbbf421f4e7 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Tue, 19 Dec 2023 23:17:12 +1100 Subject: [PATCH] Change text to red when isolator returns error on function playground --- templates/function_editor.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/function_editor.html b/templates/function_editor.html index 27e8a27..bc97834 100644 --- a/templates/function_editor.html +++ b/templates/function_editor.html @@ -57,8 +57,8 @@

Response

-
- ${data.result.body} +
+ ${data.status == 'SUCCESS' ? data.result.body : data.result}