Skip to content

Commit

Permalink
docs: Better error message for missing snippet file
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Nov 7, 2024
1 parent 9bcebb7 commit 96912fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func countSnippetLines() int {
// Count lines in snippet file
f, err := os.Open(config.Conf.General.SnippetFile)
if err != nil {
panic("Error reading snippet file")
panic("Snippet file must be specified - could not read snippet file.")
}
lineCount, err := CountLines(f)
if err != nil {
Expand Down

0 comments on commit 96912fe

Please sign in to comment.