1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 11:37:40 +00:00

Improve error logging and message

This commit is contained in:
Jan Schneider
2020-01-11 09:35:19 +01:00
parent 1c94fb0fdf
commit 1a1a8d422d
2 changed files with 14 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ if [catch {process} result] {
puts "Content-Type: ${content_type}"
puts "Status: $status";
puts ""
set result [json_string $result]
set result [json_string "${result} - ${::errorCode} - ${::errorInfo}"]
puts -nonewline "\{\"error\":\"${result}\"\}"
} else {
puts "Content-Type: ${content_type}"