Skip to content

Commit

Permalink
Merge pull request #16 from webhippie/error-format
Browse files Browse the repository at this point in the history
fix: correctly handle different custom error file formats
  • Loading branch information
tboerger authored Jun 29, 2022
2 parents 3c1fae6 + 0355ea1 commit fcb838a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 315 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/yaml-errors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Define errors in YAML format

We had been parsing JSON files only which lead to issues if somebody tries to
override the error codes with a YAML file. We had to replace the document parser
to handle that properly.

https://github.com/webhippie/errors/issues/15
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ require (
github.com/rs/zerolog v1.27.0
github.com/spf13/cobra v1.5.0
github.com/spf13/viper v1.12.0
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand Down Expand Up @@ -40,5 +41,4 @@ require (
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit fcb838a

Please sign in to comment.