From d746fcff4da8b9e09465eab430b92f14731bbf57 Mon Sep 17 00:00:00 2001 From: Damon To Date: Tue, 16 Jul 2024 14:35:18 +0800 Subject: [PATCH] fix: unmarshal error messages --- internal/pkg/util/euicc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/pkg/util/euicc.go b/internal/pkg/util/euicc.go index 28bf0f7..104d4aa 100644 --- a/internal/pkg/util/euicc.go +++ b/internal/pkg/util/euicc.go @@ -40,10 +40,10 @@ var EUMs []*EUM func init() { if err := json.Unmarshal(eum, &EUMs); err != nil { - slog.Error("failed to unmarshal EUMs", err) + slog.Error("failed to unmarshal EUMs", "error", err) } if err := json.Unmarshal(ci, &certificateIssuers); err != nil { - slog.Error("failed to unmarshal certificate issuers", err) + slog.Error("failed to unmarshal certificate issuers", "error", err) } }