github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/modules/files/errors.go (about) 1 package files 2 3 import "fmt" 4 5 // DirNotFoundError is an error that occurs if a directory doesn't exist 6 type DirNotFoundError struct { 7 Directory string 8 } 9 10 func (err DirNotFoundError) Error() string { 11 return fmt.Sprintf("Directory was not found: \"%s\"", err.Directory) 12 }