mfer/internal/bork/error.go

16 lines
276 B
Go
Raw Normal View History

2022-12-06 16:42:26 +00:00
package bork
import (
"errors"
"fmt"
)
2022-12-08 18:25:30 +00:00
var (
ErrMissingMagic = errors.New("missing magic bytes in file")
ErrFileTruncated = errors.New("file/stream is truncated abnormally")
)
2022-12-06 16:42:26 +00:00
func Newf(format string, args ...interface{}) error {
2022-12-08 18:25:30 +00:00
return fmt.Errorf(format, args...)
2022-12-06 16:42:26 +00:00
}