diff options
Diffstat (limited to 'weed/shell/command_remote_unmount.go')
| -rw-r--r-- | weed/shell/command_remote_unmount.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_remote_unmount.go b/weed/shell/command_remote_unmount.go index 87487481a..2e1ba393c 100644 --- a/weed/shell/command_remote_unmount.go +++ b/weed/shell/command_remote_unmount.go @@ -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 |
