From bc827704d555860f75c837c5ebcf8bc6022fc655 Mon Sep 17 00:00:00 2001 From: 7y-9 Date: Wed, 17 Jun 2026 06:45:29 +0800 Subject: [PATCH] fix(shell): return fs.verify topology errors (#9982) * fix(shell): return fs.verify topology errors Problem: fs.verify can silently ignore master topology lookup failures before verifying files. Root cause: commandFsVerify.Do returned parseErr after collectVolumeIds failed, but parseErr is nil once path parsing succeeds. Fix: Return the actual collectVolumeIds error so VolumeList and master client failures stop the command. Co-authored-by: Codex * remove the tests --------- Co-authored-by: Codex --- weed/shell/command_fs_verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go index 7e06a111f..aff79e93c 100644 --- a/weed/shell/command_fs_verify.go +++ b/weed/shell/command_fs_verify.go @@ -86,7 +86,7 @@ func (c *commandFsVerify) Do(args []string, commandEnv *CommandEnv, writer io.Wr }() if err := c.collectVolumeIds(); err != nil { - return parseErr + return err } if *c.concurrency > 0 {