From 7192fcde6103be613282bbec707d9f4fddb41e29 Mon Sep 17 00:00:00 2001 From: Owen Cabalceta Date: Tue, 18 Jun 2024 19:05:11 -0400 Subject: [PATCH] patch: mocktr181, move the parameter name to the Tr181Payload's message when parameter is non-readable - move the parameter name to the Tr181Payload's message when parameter is non-readable --- internal/wrphandlers/mocktr181/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/wrphandlers/mocktr181/handler.go b/internal/wrphandlers/mocktr181/handler.go index 381601c..b05cb56 100644 --- a/internal/wrphandlers/mocktr181/handler.go +++ b/internal/wrphandlers/mocktr181/handler.go @@ -176,8 +176,7 @@ func (h Handler) get(names []string) (int64, []byte, error) { }) default: result.Parameters = append(result.Parameters, Parameter{ - Name: mockParameter.Name, - Message: "Invalid parameter name", + Message: fmt.Sprintf("Invalid parameter name: %s", mockParameter.Name), }) statusCode = 520 }