rclone/backend/yandex/api/errors.go
2018-01-12 17:07:38 +00:00

14 lines
258 B
Go

package src
import "encoding/json"
//DiskClientError struct
type DiskClientError struct {
Description string `json:"Description"`
Code string `json:"Error"`
}
func (e DiskClientError) Error() string {
b, _ := json.Marshal(e)
return string(b)
}