Skip to content

Commit

Permalink
fix: Add context to error
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Dec 5, 2023
1 parent e964755 commit 70816ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/puzzles/solutions/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func createNewFromTemplate(purl string) error {

pd, err := parsePuzzleURL(purl)
if err != nil {
return fmt.Errorf("parse puzzle url: %w", err)
return fmt.Errorf("parse puzzle url %q: %w", purl, err)
}

day := strconv.Itoa(pd.day)
Expand Down

0 comments on commit 70816ed

Please sign in to comment.