Skip to content

Commit

Permalink
Use semerr
Browse files Browse the repository at this point in the history
Co-authored-by: Maksym Kryvchun <hedhyw@yahoo.com>
  • Loading branch information
chirino and hedhyw authored Sep 12, 2024
1 parent 88a3750 commit 1a02233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (is *Source) CanFollow() bool {
return len(is.name) != 0
}

var ErrFileTruncated = errors.New("file truncated")
const ErrFileTruncated semerr.Error = "file truncated"

// ReadLogEntry reads the next ReadLogEntry from the file.
func (is *Source) ReadLogEntry() (LazyLogEntry, error) {
Expand Down

0 comments on commit 1a02233

Please sign in to comment.