X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/448c931a776c3e3f65ca2eab11da0c062d597818..bd7da3557dc7a17020931f5a49ed5007fa81a645:/terminal.go diff --git a/terminal.go b/terminal.go index da0d78a..db259fb 100644 --- a/terminal.go +++ b/terminal.go @@ -30,13 +30,13 @@ var errTerminalDaemonClosed = errors.New("the daemon closed the connection") func terminal(ctx context.Context, in io.Reader, out io.Writer) error { dir, err := dataDir() if err != nil { - return err + return fmt.Errorf("find data directory: %w", err) } path := filepath.Join(dir, socketFileName) err = checkSocketPath(path) if err != nil { - return err + return fmt.Errorf("check terminal socket path: %w", err) } var dialer net.Dialer