lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 8cf85e6dd4a413f70128966b279a85b8a6e84cb1
parent 3bf2e17a7f42549fc41d0b11c854912be2c6f9a7
Author: Sean Enck <sean@ttypty.com>
Date:   Fri,  9 Jun 2023 19:50:59 -0400

change error text

Diffstat:
Minternal/app/showclip.go | 2+-
Minternal/app/showclip_test.go | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/app/showclip.go b/internal/app/showclip.go @@ -13,7 +13,7 @@ import ( func ShowClip(cmd CommandOptions, isShow bool) error { args := cmd.Args() if len(args) != 1 { - return errors.New("entry required") + return errors.New("only one argument supported") } entry := args[0] clipboard := platform.Clipboard{} diff --git a/internal/app/showclip_test.go b/internal/app/showclip_test.go @@ -10,7 +10,7 @@ import ( func TestShowClip(t *testing.T) { m := newMockCommand(t) - if err := app.ShowClip(m, true); err.Error() != "entry required" { + if err := app.ShowClip(m, true); err.Error() != "only one argument supported" { t.Errorf("invalid error: %v", err) } m.args = []string{"test/test2/test1"}