nix-amer/internal/buildfile/errors.go

16 lines
242 B
Go

package buildfile
import (
"fmt"
"git.xdrm.io/go/nix-amer/internal/clifmt"
)
type LineError struct {
Line int
Err error
}
func (le LineError) Error() string {
return fmt.Sprintf(":%d %s", le.Line, clifmt.Color(31, le.Err.Error()))
}