You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
625 B

  1. // Package errors contains errors that are thrown across packages.
  2. package errors
  3. // // ErrPermissionsChanged occurs if the file permission have changed since the file was created.
  4. // type ErrPermissionsChanged struct {
  5. // name string
  6. // got, want os.FileMode
  7. // }
  8. // func NewErrPermissionsChanged(name string, got, want os.FileMode) *ErrPermissionsChanged {
  9. // return &ErrPermissionsChanged{name: name, got: got, want: want}
  10. // }
  11. // func (e ErrPermissionsChanged) Error() string {
  12. // return fmt.Sprintf(
  13. // "file: [%v]\nexpected file permissions: %v, got: %v",
  14. // e.name,
  15. // e.want,
  16. // e.got,
  17. // )
  18. // }