Skip to content

Commit

Permalink
patch: mocktr181, move the parameter name to the Tr181Payload's messa…
Browse files Browse the repository at this point in the history
…ge when parameter is non-readable

- move the parameter name to the Tr181Payload's message when parameter is non-readable
  • Loading branch information
denopink committed Jun 18, 2024
1 parent 9452778 commit 7192fcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/wrphandlers/mocktr181/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7192fcd

Please sign in to comment.