Skip to content

Commit

Permalink
Improve missing enum case error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Apr 6, 2021
1 parent ffa4860 commit 8721f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/contract_update_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ func assertMissingEnumCasesError(t *testing.T, err error, declName string, expec
assert.Equal(
t,
fmt.Sprintf(
"missing enum cases in `%s`: expected %d or more, found %d",
"missing cases in enum `%s`: expected %d or more, found %d",
declName,
expectedCaes,
foundCases,
Expand Down
2 changes: 1 addition & 1 deletion runtime/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ type MissingEnumCasesError struct {

func (e *MissingEnumCasesError) Error() string {
return fmt.Sprintf(
"missing enum cases in `%s`: expected %d or more, found %d",
"missing cases in enum `%s`: expected %d or more, found %d",
e.declName,
e.expected,
e.found,
Expand Down

0 comments on commit 8721f72

Please sign in to comment.