Skip to content

Commit 1dc3498

Browse files
committed
rpc: improve IPC socket error message for filesystem compatibility
Clarify that ext2/ext3/ext4 filesystems support Unix domain sockets (including Thunderbolt Type-C drives), while exFAT does not. This helps users understand why socket creation may fail on certain filesystems. Signed-off-by: Cloorc <[email protected]>
1 parent 4185df4 commit 1dc3498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rpc/ipc_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package rpc
2121

2222
import (
2323
"context"
24+
"errors"
2425
"fmt"
2526
"net"
2627
"os"
@@ -50,7 +51,7 @@ func ipcListen(endpoint string) (net.Listener, error) {
5051
os.Remove(endpoint)
5152
l, err := net.Listen("unix", endpoint)
5253
if err != nil {
53-
return nil, err
54+
return nil, errors.Join(err, fmt.Errorf("make sure the disk partition of %s supports Unix domain sockets (ext2/ext3/ext4 work; exFAT does not)", endpoint))
5455
}
5556
os.Chmod(endpoint, 0600)
5657
return l, nil

0 commit comments

Comments
 (0)