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 <noreply@openai.com>

* remove the tests

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
7y-9
2026-06-17 06:45:29 +08:00
committed by GitHub
parent 1826a5d222
commit bc827704d5
+1 -1
View File
@@ -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 {