From eb5fd07131f0e8b84941d1f01efbdebf4f3d7785 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:27:31 +0100 Subject: [PATCH] mount: error strings should not be capitalized --- cmd/mountlib/rc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mountlib/rc.go b/cmd/mountlib/rc.go index d4c091235..df13ca97c 100644 --- a/cmd/mountlib/rc.go +++ b/cmd/mountlib/rc.go @@ -98,7 +98,7 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) { } 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") @@ -111,7 +111,7 @@ func mountRc(ctx context.Context, in rc.Params) (out rc.Params, err error) { } mountType, mountFn := ResolveMountMethod(mountType) 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