Merge pull request #308 from paivagustavo/master

Print error when trying to copy to clipboard.
mine
Fernand Galiana 2019-09-20 06:45:43 -06:00 committed by GitHub
commit 2efdee70c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ 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)
if err := clipboard.WriteAll(n); err != nil {
v.app.Flash().Err(err)
}
return nil
}