mirror of
https://github.com/rclone/rclone.git
synced 2024-11-27 02:34:21 +08:00
15 lines
258 B
Go
15 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)
|
|
}
|