errors.go 221 B

123456789101112131415
  1. package githttp
  2. import (
  3. "fmt"
  4. )
  5. type ErrorNoAccess struct {
  6. // Path to directory of repo accessed
  7. Dir string
  8. }
  9. func (e *ErrorNoAccess) Error() string {
  10. return fmt.Sprintf("Could not access repo at '%s'", e.Dir)
  11. }