mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
current code results in panic and we certainly don't want that. https://github.com/tendermint/tendermint/pull/2286#issuecomment-418281846
22 lines
625 B
Go
22 lines
625 B
Go
// Package errors contains errors that are thrown across packages.
|
|
package errors
|
|
|
|
// // ErrPermissionsChanged occurs if the file permission have changed since the file was created.
|
|
// type ErrPermissionsChanged struct {
|
|
// name string
|
|
// got, want os.FileMode
|
|
// }
|
|
|
|
// func NewErrPermissionsChanged(name string, got, want os.FileMode) *ErrPermissionsChanged {
|
|
// return &ErrPermissionsChanged{name: name, got: got, want: want}
|
|
// }
|
|
|
|
// func (e ErrPermissionsChanged) Error() string {
|
|
// return fmt.Sprintf(
|
|
// "file: [%v]\nexpected file permissions: %v, got: %v",
|
|
// e.name,
|
|
// e.want,
|
|
// e.got,
|
|
// )
|
|
// }
|