Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Nov 29, 2023
1 parent a33f039 commit c870162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions evo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func Setup() {
if err != nil {
log.Fatal(err)
}

settings.Register("HTTP", &http)
settings.Get("HTTP").Cast(&http)
err = generic.Parse(http).Cast(&fiberConfig)
Expand Down
2 changes: 1 addition & 1 deletion lib/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (v Value) Cast(dst interface{}) error {
case reflect.Func, reflect.Struct, reflect.Interface:
return nil
default:
return fmt.Errorf("couldnt convert to %s", ref.Type().String())
return fmt.Errorf("couldnt convert to %s", ref.String())
}
ref.Set(reflect.ValueOf(x).Convert(ref.Type()))
return nil
Expand Down

0 comments on commit c870162

Please sign in to comment.