Skip to content

Commit

Permalink
feat: added content errors
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Feb 3, 2022
1 parent 1479570 commit 9a9f137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/v1/testkube/model_script_content_extended.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const (
ScriptContentTypeGitDir ScriptContentType = "git-dir"
)

var ErrTypeNotFile = fmt.Errorf("unsupported content type use one of: file-uri, git-file, string")
var ErrTypeNotDir = fmt.Errorf("unsupported content type use one of: git-dir")
var ErrScriptContentTypeNotFile = fmt.Errorf("unsupported content type use one of: file-uri, git-file, string")
var ErrScriptContentTypeNotDir = fmt.Errorf("unsupported content type use one of: git-dir")

func NewStringScriptContent(str string) *ScriptContent {
return &ScriptContent{
Expand Down

0 comments on commit 9a9f137

Please sign in to comment.