Skip to content

Commit

Permalink
Merge pull request #165 from xmidt-org/denopink/patch/mocktr181-updat…
Browse files Browse the repository at this point in the history
…e-invalid-message-for-non-readable-resp

patch: mocktr181, move the parameter name to the Tr181Payload's message when parameter is non-readable
  • Loading branch information
schmidtw authored Jun 18, 2024
2 parents 9452778 + 7192fcd commit 2532cbf
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 2532cbf

Please sign in to comment.