-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
errors.go
33 lines (26 loc) · 925 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package helm
import (
"fmt"
)
// ValuesFileNotFoundError is returned when a provided values file input is not found on the host path.
type ValuesFileNotFoundError struct {
Path string
}
func (err ValuesFileNotFoundError) Error() string {
return fmt.Sprintf("Could not resolve values file %s", err.Path)
}
// SetFileNotFoundError is returned when a provided set file input is not found on the host path.
type SetFileNotFoundError struct {
Path string
}
func (err SetFileNotFoundError) Error() string {
return fmt.Sprintf("Could not resolve set file path %s", err.Path)
}
// TemplateFileNotFoundError is returned when a provided template file input is not found in the chart
type TemplateFileNotFoundError struct {
Path string
ChartDir string
}
func (err TemplateFileNotFoundError) Error() string {
return fmt.Sprintf("Could not resolve template file %s relative to chart path %s", err.Path, err.ChartDir)
}