From 695b07adee3c6c028f3133a792252601f78862d7 Mon Sep 17 00:00:00 2001 From: Rami Date: Wed, 8 May 2024 17:55:58 +0200 Subject: [PATCH] refactor: Better error message --- snippet/snippet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippet/snippet.go b/snippet/snippet.go index 83da9df..e82a0dd 100644 --- a/snippet/snippet.go +++ b/snippet/snippet.go @@ -34,7 +34,7 @@ func (snippets *Snippets) Load() error { err = toml.Unmarshal(f, snippets) if err != nil { - return fmt.Errorf("failed to unmarshal snippet file. %v", err) + return fmt.Errorf("failed to parse snippet file. %v", err) } snippets.Order()