Skip to content

Commit 63a88dc

Browse files
fix: list per-WM install commands in linux clipboard error
1 parent bb883b5 commit 63a88dc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

internal/pal/clipboard_linux.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ func copyToClipboard(text string) error {
4040

4141
// gotext only scans cmd/modern, cmd/sqlcmd, and pkg/sqlcmd, so this stays plain fmt.Errorf.
4242
return fmt.Errorf(
43-
"failed to copy to clipboard; tried xclip, xsel, wl-copy: %s. "+
44-
"Install one with your distro's package manager (xclip or xsel on X11, wl-clipboard on Wayland) and use your own judgement on which fits your environment",
43+
"failed to copy to clipboard; tried xclip, xsel, wl-copy: %s\n"+
44+
"Install one and re-run (use your own judgement on what fits your environment):\n"+
45+
" X11: sudo apt install xclip (or xsel)\n"+
46+
" Wayland: sudo apt install wl-clipboard (provides wl-copy)\n"+
47+
"On dnf/pacman-based distros substitute your package manager",
4548
strings.Join(attempts, "; "),
4649
)
4750
}

0 commit comments

Comments
 (0)