mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-25 17:50:36 +08:00
various minor cleanups and improvements to error handling
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -55,7 +55,7 @@ func waitForSocket(path string) error {
|
||||
|
||||
func Connect(path string) (*Client, error) {
|
||||
if err := waitForSocket(path); err != nil {
|
||||
return nil, fmt.Errorf("failed to wait for socket: %w", err)
|
||||
return nil, fmt.Errorf("failed to wait for socket: %s: %w", path, err)
|
||||
}
|
||||
|
||||
tgt := fmt.Sprintf("unix://%s", path)
|
||||
|
||||
Reference in New Issue
Block a user