Skip to content

Commit

Permalink
proto: Export ErrInvalidUTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaplygin committed Nov 13, 2024
1 parent b985635 commit 3aee49c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/impl/codec_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ func (errInvalidUTF8) Error() string { return "string field contains invalid
func (errInvalidUTF8) InvalidUTF8() bool { return true }
func (errInvalidUTF8) Unwrap() error { return errors.Error }

var ErrInvalidUTF8 = errInvalidUTF8{}

// initOneofFieldCoders initializes the fast-path functions for the fields in a oneof.
//
// For size, marshal, and isInit operations, functions are set only on the first field
Expand Down
2 changes: 2 additions & 0 deletions runtime/protoimpl/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ type (
)

var X impl.Export

var ErrInvalidUTF8 = impl.ErrInvalidUTF8

0 comments on commit 3aee49c

Please sign in to comment.