mfer/internal/bork/error.go

14 lines
286 B
Go
Raw Normal View History

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