Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix error format

chrislu25d6310307b8
diff --git a/weed/command/fuse.go b/weed/command/fuse.go
index 92ccf46733..9832b4f720 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 = &parameter.value