Skip to content

Commit

Permalink
fix: Handled one last error
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Aug 19, 2024
1 parent e2753dc commit a441891
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snippet/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
}
}

Expand Down

0 comments on commit a441891

Please sign in to comment.