diff --git a/evo.go b/evo.go index 38d9e1e5..f8b624ac 100644 --- a/evo.go +++ b/evo.go @@ -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) diff --git a/lib/generic/generic.go b/lib/generic/generic.go index e734ee18..3a44686e 100644 --- a/lib/generic/generic.go +++ b/lib/generic/generic.go @@ -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