convert error fromating to %w everywhere (#6995)
This commit is contained in:
@@ -78,12 +78,12 @@ func (c *commandRemoteMount) Do(args []string, commandEnv *CommandEnv, writer io
|
||||
|
||||
// sync metadata from remote
|
||||
if err = syncMetadata(commandEnv, writer, *dir, *nonEmpty, remoteConf, remoteStorageLocation); err != nil {
|
||||
return fmt.Errorf("pull metadata: %v", err)
|
||||
return fmt.Errorf("pull metadata: %w", err)
|
||||
}
|
||||
|
||||
// store a mount configuration in filer
|
||||
if err = filer.InsertMountMapping(commandEnv, *dir, remoteStorageLocation); err != nil {
|
||||
return fmt.Errorf("save mount mapping: %v", err)
|
||||
return fmt.Errorf("save mount mapping: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
@@ -161,7 +161,7 @@ func syncMetadata(commandEnv *CommandEnv, writer io.Writer, dir string, nonEmpty
|
||||
|
||||
// pull metadata from remote
|
||||
if err = pullMetadata(commandEnv, writer, util.FullPath(dir), remote, util.FullPath(dir), remoteConf); err != nil {
|
||||
return fmt.Errorf("cache metadata: %v", err)
|
||||
return fmt.Errorf("cache metadata: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user