Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Forgot to update error name in util
Browse files Browse the repository at this point in the history
  • Loading branch information
dusk125 committed Oct 14, 2021
1 parent a0d75c3 commit 1dff7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func split(img, space image.Rectangle) (s *createdSplits, err error) {
h := space.Dy() - img.Dy()

if w < 0 || h < 0 {
return nil, ErrorSplitFailed
return nil, ErrSplitFailed
} else if w == 0 && h == 0 {
// perfectly fit case
return &createdSplits{}, nil
Expand Down

0 comments on commit 1dff7cf

Please sign in to comment.