diff options
| author | chrislu <chris.lu@gmail.com> | 2025-05-22 09:56:31 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-05-22 09:56:31 -0700 |
| commit | 25d6310307b8ac29b72122ded6b975b06b4abf95 (patch) | |
| tree | 3033090a64712d7cdbfe256ad3146db006fc2794 | |
| parent | 874b4a553594e94b1b21f7f09c1c9a618a3fac78 (diff) | |
| download | seaweedfs-25d6310307b8ac29b72122ded6b975b06b4abf95.tar.xz seaweedfs-25d6310307b8ac29b72122ded6b975b06b4abf95.zip | |
fix error format
| -rw-r--r-- | weed/command/fuse.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/fuse.go b/weed/command/fuse.go index 92ccf4673..9832b4f72 100644 --- a/weed/command/fuse.go +++ b/weed/command/fuse.go @@ -110,11 +110,11 @@ func runFuse(cmd *Command, args []string) bool { masterProcess = false if parsed, err := strconv.ParseInt(parameter.value, 10, 64); err == nil { if parsed > math.MaxInt || parsed <= 0 { - panic(fmt.Errorf("parent PID %s is invalid", err)) + panic(fmt.Errorf("parent PID %d is invalid", parsed)) } mountOptions.fuseCommandPid = int(parsed) } else { - panic(fmt.Errorf("parent PID %s is invalid", err)) + panic(fmt.Errorf("parent PID %s is invalid: %w", parameter.value, err)) } case "arg0": mountOptions.dir = ¶meter.value |
