Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jan 9, 2025
1 parent fbd7cf5 commit 2c47682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (f *Field) cast(object any) (cast any, err error) {
case string:
cast, err = strconv.Atoi(x)
default:
err = errors.New("expected: int|boolean|string")
err = errors.New("expected: integer|boolean|string")
}
case "boolean":
switch x := object.(type) {
Expand All @@ -131,10 +131,10 @@ func (f *Field) cast(object any) (cast any, err error) {
case string:
cast, err = strconv.ParseBool(x)
default:
err = errors.New("expected: int|boolean|string")
err = errors.New("expected: integer|boolean|string")
}
default:
err = errors.New("expected: integer|boolean")
err = errors.New("expected: integer|boolean|string")
}
return
}
Expand Down

0 comments on commit 2c47682

Please sign in to comment.