From c8701626b05485333552b9ddc5a47f4adb886266 Mon Sep 17 00:00:00 2001 From: Reza Date: Wed, 29 Nov 2023 14:52:30 +0100 Subject: [PATCH] debug --- evo.go | 1 + lib/generic/generic.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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