github.com/tonto/cli@v0.0.0-20180104210444-aec958fa47db/errors.go (about)

     1  package main
     2  
     3  type notFoundError struct {
     4  	S string
     5  }
     6  
     7  func (e *notFoundError) Error() string {
     8  	return e.S
     9  }
    10  
    11  func newNotFoundError(s string) *notFoundError {
    12  	return &notFoundError{S: s}
    13  }