From 2d152ba32d048e1e97438d99dd24ed5a32a6b961 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Sep 2022 08:55:30 +0200 Subject: Types Error: Do not panic on JSON error --- state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'state.go') diff --git a/state.go b/state.go index fe630c9..1354ffc 100644 --- a/state.go +++ b/state.go @@ -714,6 +714,6 @@ func GetErrorTraceback(err error) string { return types.GetErrorTraceback(err) } -func GetErrorJSONString(err error) string { +func GetErrorJSONString(err error) (string, error) { return types.GetErrorJSONString(err) } -- cgit v1.2.3