mirror of
https://github.com/rclone/rclone.git
synced 2025-12-12 06:24:14 +01:00
The SDK doesn't wrap errors in a Go standard way so they can't be unwrapped and tested for - eg fatal error. The code looks for a Serialization or RequestError and returns the unwrapped underlying error if possible. This fixes the fs/operations integration tests checking for fatal errors being returned.