gitlab.com/jfprevost/gitlab-runner-notlscheck@v11.11.4+incompatible/executors/docker/internal/volumes/parser/errors.go (about) 1 package parser 2 3 import ( 4 "fmt" 5 ) 6 7 type InvalidVolumeSpecError struct { 8 spec string 9 } 10 11 func (e *InvalidVolumeSpecError) Error() string { 12 return fmt.Sprintf("invalid volume specification: %q", e.spec) 13 } 14 15 func NewInvalidVolumeSpecErr(spec string) error { 16 return &InvalidVolumeSpecError{ 17 spec: spec, 18 } 19 }