1
mirror of https://github.com/rclone/rclone synced 2024-12-24 15:43:45 +01:00
rclone/lib/readers/error.go
2020-04-19 15:18:49 +01:00

12 lines
216 B
Go

package readers
// ErrorReader wraps an error to return on Read
type ErrorReader struct {
Err error
}
// Read always returns the error
func (er ErrorReader) Read(p []byte) (n int, err error) {
return 0, er.Err
}