Skip to content

Commit d808c9b

Browse files
committed
typos in assert message
1 parent 34754a3 commit d808c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handler/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ func ToErrorFns(handlerFns []any) (hs []ErrorFn) {
412412
hs = append(hs, fn)
413413
} else {
414414
msg := `---
415-
assertion vialation: your handlers should be 'func(erro) error' type
415+
assertion violation: your handlers should be 'func(error) error' type
416416
---`
417417
fmt.Fprintln(os.Stderr, color.Red()+msg+color.Reset())
418418
return nil

0 commit comments

Comments
 (0)