gignore/error.go
2025-03-10 15:21:27 +00:00

18 lines
427 B
Go

// Package gignore provides functionality for handling template errors and registry operations.
package gignore
import (
"fmt"
"github.com/onyx-and-iris/gignore/internal/registry"
)
type templateNotFoundError struct {
template string
registry *registry.TemplateRegistry
}
func (e *templateNotFoundError) Error() string {
return fmt.Sprintf("template '%s' not found in %s registry", e.template, e.registry.Directory)
}