From 9c9487365ff27e3b8e63945b5e89ca9eba6c7dad Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:23:42 +0100 Subject: [PATCH] config: show more user friendly names of custom types in ui --- fs/config/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/config/ui.go b/fs/config/ui.go index c58fb92e4..694548b71 100644 --- a/fs/config/ui.go +++ b/fs/config/ui.go @@ -495,7 +495,7 @@ func ChooseOption(o *fs.Option, name string) string { case uint, byte, uint16, uint32, uint64: what = "unsigned integer" default: - what = fmt.Sprintf("%T value", o.Default) + what = fmt.Sprintf("value of type %s", o.Type()) } } var in string