diff --git a/snippet/snippet.go b/snippet/snippet.go index b66ef8b..32cf2e4 100644 --- a/snippet/snippet.go +++ b/snippet/snippet.go @@ -34,6 +34,13 @@ func (snippets *Snippets) Load() error { snippetFiles = append(snippetFiles, snippetFile) } else if !os.IsNotExist(err) { return fmt.Errorf("failed to load snippet file. %v", err) + } else { + return fmt.Errorf( + `snippet file not found. %s +Please run 'pet configure' and provide a correct file path, or remove this +if you only want to provide snippetdirs instead`, + snippetFile, + ) } }