From 2187987f48e58dddad7764aef45f6f4c8024b62f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 6 Jan 2020 21:12:54 +0100 Subject: [PATCH] Fix errorcode status --- addon/www/rest.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/www/rest.cgi b/addon/www/rest.cgi index 1f02bd5..4f8cdd7 100644 --- a/addon/www/rest.cgi +++ b/addon/www/rest.cgi @@ -234,7 +234,7 @@ variable content_type "application/json" if [catch {process} result] { set status 500 - if { $errorCode != "NONE" } { + if { [regexp {^\d+$} $errorCode ] } { set status $errorCode } puts "Content-Type: ${content_type}"