From 5d06143883742022d38e4c77a0df4254b1a1c57b Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sun, 11 Aug 2024 19:25:14 +0200 Subject: [PATCH] fix: Fix print --- root-handler/lsp-utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root-handler/lsp-utils.go b/root-handler/lsp-utils.go index 9954660..b714340 100644 --- a/root-handler/lsp-utils.go +++ b/root-handler/lsp-utils.go @@ -28,7 +28,7 @@ type FatalFileNotReadableError struct { } func (e FatalFileNotReadableError) Error() string { - return fmt.Sprint("Fatal error! config-lsp was unable to read the file (%s); error: %s", e.FileURI, e.Err.Error()) + return fmt.Sprintf("Fatal error! config-lsp was unable to read the file (%s); error: %s", e.FileURI, e.Err.Error()) } type UnsupportedLanguageError struct { @@ -36,7 +36,7 @@ type UnsupportedLanguageError struct { } func (e UnsupportedLanguageError) Error() string { - return fmt.Sprint("Language '%s' is not supported. Choose one of: %s", e.SuggestedLanguage, strings.Join(AllSupportedLanguages, ", ")) + return fmt.Sprintf("Language '%s' is not supported. Choose one of: %s", e.SuggestedLanguage, strings.Join(AllSupportedLanguages, ", ")) } type LanguageUndetectableError struct{}