convert error fromating to %w everywhere (#6995)
This commit is contained in:
@@ -67,13 +67,13 @@ func (c *commandRemoteUnmount) Do(args []string, commandEnv *CommandEnv, writer
|
||||
// store a mount configuration in filer
|
||||
fmt.Fprintf(writer, "deleting mount for %s ...\n", *dir)
|
||||
if err = filer.DeleteMountMapping(commandEnv, *dir); err != nil {
|
||||
return fmt.Errorf("delete mount mapping: %v", err)
|
||||
return fmt.Errorf("delete mount mapping: %w", err)
|
||||
}
|
||||
|
||||
// purge mounted data
|
||||
fmt.Fprintf(writer, "purge %s ...\n", *dir)
|
||||
if err = c.purgeMountedData(commandEnv, *dir); err != nil {
|
||||
return fmt.Errorf("purge mounted data: %v", err)
|
||||
return fmt.Errorf("purge mounted data: %w", err)
|
||||
}
|
||||
|
||||
// reset remote sync offset in case the folder is mounted again
|
||||
|
||||
Reference in New Issue
Block a user