10000 chore: Add message to error · obalunenko/advent-of-code@4c20371 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c20371

Browse files
committed
chore: Add message to error
1 parent be99c97 commit 4c20371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/command/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func Run(ctx context.Context, year, day string) (puzzles.Result, error) {
2727
Day: day,
2828
}, SessionFromContext(ctx))
2929
if err != nil {
30-
return puzzles.Result{}, err
30+
return puzzles.Result{}, fmt.Errorf("failed to get input for puzzle: %w", err)
3131
}
3232

3333
opts := OptionsFromContext(ctx)

0 commit comments

Comments
 (0)
0