nix-amer/internal/buildfile/errors.go

15 lines
187 B
Go

package buildfile
import (
"fmt"
)
type LineError struct {
Line int
Err error
}
func (le LineError) Error() string {
return fmt.Sprintf("line %d | %s", le.Line, le.Err.Error())
}