thread-master/internal/library/prompt/errors.go

16 lines
248 B
Go
Raw Normal View History

2026-06-26 08:37:04 +00:00
package prompt
import "fmt"
type unknownKeyError struct {
key string
}
func ErrUnknownKey(key string) error {
return unknownKeyError{key: key}
}
func (e unknownKeyError) Error() string {
return fmt.Sprintf("unknown prompt key: %s", e.key)
}