Skip to content

Commit

Permalink
errcode/goa: upgrade errcode and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gregwebs committed Jan 22, 2025
1 parent 04c2232 commit 98bf7bd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
9 changes: 6 additions & 3 deletions goa/go.mod
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
module github.com/gregwebs/errcode/goa

go 1.18
go 1.23.3

require (
github.com/gregwebs/errcode v0.11.0
github.com/gregwebs/errors v1.0.0
github.com/gregwebs/errcode v0.30.0
github.com/gregwebs/errors v1.40.1
goa.design/goa/v3 v3.10.0
)

require (
github.com/dimfeld/httptreemux/v5 v5.4.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gregwebs/errors/errwrap v0.1.1 // indirect
github.com/gregwebs/errors/slogerr v0.1.1 // indirect
github.com/gregwebs/stackfmt v0.1.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
)
14 changes: 10 additions & 4 deletions goa/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/gregwebs/errcode v0.11.0 h1:LryRBQg6BnqJhPPf5mDLEhLkYLx3mZyRE6Z5QT8djQI=
github.com/gregwebs/errcode v0.11.0/go.mod h1:9hGdc/kIviyBxF9dq0APXLfaDq2IpYg+Wt4kCbk0cQI=
github.com/gregwebs/errors v1.0.0 h1:Ov7HzBs79i7TcqQnfxyxLT8gttpTzGT3cDq70J8zkpE=
github.com/gregwebs/errors v1.0.0/go.mod h1:hUKQdGWTRTHMeAXJudXmN/BMLe+L51MG+OnRz72ZeBc=
github.com/gregwebs/errcode v0.30.0 h1:1XylZmRfmHXxaLwG6eC1ZgIrVl66N/av+x3R8bTCHsU=
github.com/gregwebs/errcode v0.30.0/go.mod h1:+Yk7XHN3ra/h8ZNQu33ynSog3Vjn3MVR6HgRwEslgSM=
github.com/gregwebs/errors v1.40.1 h1:xL9Xh5kz95K/hWuieLQfluH501iVJWm57XgljZrs2yI=
github.com/gregwebs/errors v1.40.1/go.mod h1:uBv4YWGzx8CH5zX4yVeYx2qnFUl1Hog/5ESOgYXyAZQ=
github.com/gregwebs/errors/errwrap v0.1.1 h1:6tW81ugkhnAtoY81AS/OxwU5gu/5Ug/F9unLsWIzRU8=
github.com/gregwebs/errors/errwrap v0.1.1/go.mod h1:Xqoa1jjxE/0w8gjUTyRQEOXrG8d+sAwQmZEwnUyTtig=
github.com/gregwebs/errors/slogerr v0.1.1 h1:QES6SiI2MRNUCsWzxIweSdHQ6ep9iVv6FH/AEggzLrk=
github.com/gregwebs/errors/slogerr v0.1.1/go.mod h1:emBiGGVdfUO1UnPUCvgkN49Y2eL+EClImkMR+4Iq0rY=
github.com/gregwebs/stackfmt v0.1.1 h1:bqHZv69OGARsyNPD4tJfkJnu5oWjA86dISQKKfFt98A=
github.com/gregwebs/stackfmt v0.1.1/go.mod h1:MQWvus3s9juULflTEiFIllieKiz7AnX7i4HWyPOs2nQ=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
Expand Down
2 changes: 1 addition & 1 deletion goa/goa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestErrorResponse(t *testing.T) {
if err != nil {
t.Fatalf("expected json marshal success, got %v", err)
}
expectedJSON := `{"code":"internal","msg":"wrapped: goa test","data":{}}`
expectedJSON := `{"code":"internal","msg":"wrapped: goa test","data":null}`
if string(jsonBytes) != expectedJSON {
t.Fatalf("expected %s, got %s", expectedJSON, string(jsonBytes))
}
Expand Down

0 comments on commit 98bf7bd

Please sign in to comment.