mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
mount: error strings should not be capitalized
This commit is contained in:
parent
b2ce7c9aa6
commit
eb5fd07131
@ -98,7 +98,7 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if mountOpt.Daemon {
|
if mountOpt.Daemon {
|
||||||
return nil, errors.New("Daemon Option not supported over the API")
|
return nil, errors.New("daemon option not supported over the API")
|
||||||
}
|
}
|
||||||
|
|
||||||
mountType, err := in.GetString("mountType")
|
mountType, err := in.GetString("mountType")
|
||||||
@ -111,7 +111,7 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) {
|
|||||||
}
|
}
|
||||||
mountType, mountFn := ResolveMountMethod(mountType)
|
mountType, mountFn := ResolveMountMethod(mountType)
|
||||||
if mountFn == nil {
|
if mountFn == nil {
|
||||||
return nil, errors.New("Mount Option specified is not registered, or is invalid")
|
return nil, errors.New("mount option specified is not registered, or is invalid")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get Fs.fs to be mounted from fs parameter in the params
|
// Get Fs.fs to be mounted from fs parameter in the params
|
||||||
|
Loading…
Reference in New Issue
Block a user