Print error when trying to copy to clipboard.

mine
Gustavo Paiva 2019-09-17 17:04:39 -03:00
parent d44be5cb23
commit 7907f14d08
1 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,10 @@ func (v *resourceView) cpCmd(evt *tcell.EventKey) *tcell.EventKey {
_, n := namespaced(v.masterPage().GetSelectedItem())
log.Debug().Msgf("Copied selection to clipboard %q", n)
v.app.Flash().Info("Current selection copied to clipboard...")
clipboard.WriteAll(n)
err := clipboard.WriteAll(n)
if err != nil {
v.app.Flash().Errf("%s", err.Error())
}
return nil
}