♻️ Use standard getter/setter names

This commit is contained in:
Dan Jones 2024-01-19 22:37:13 -06:00
commit f27c669aeb
5 changed files with 41 additions and 37 deletions

2
new.go
View file

@ -24,5 +24,5 @@ func NewBadRequest(format string, parts ...any) SettableError {
func NewInternalError(format string, parts ...any) SettableError {
status := http.StatusInternalServerError
msg := "Unknown Error"
return Errorf(status, format, parts...).Msg(msg)
return Errorf(status, format, parts...).SetMsg(msg)
}