lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 87cd1f5b216028121402ada8142b73e32e8d5320
parent 4542849384ce3eca17c6777f660519f3e9c3fc1d
Author: Sean Enck <sean@ttypty.com>
Date:   Mon,  5 Jun 2023 18:26:50 -0400

change error text

Diffstat:
Mcmd/vers.txt | 4++--
Minternal/totp/core.go | 2+-
Minternal/totp/core_test.go | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/vers.txt b/cmd/vers.txt @@ -1 +1 @@ -de330ff-1 -\ No newline at end of file +a934c11 +\ No newline at end of file diff --git a/internal/totp/core.go b/internal/totp/core.go @@ -282,7 +282,7 @@ func NewArguments(args []string, tokenType string) (*Arguments, error) { } if needs { if len(args) != 2 { - return nil, errors.New("missing entry") + return nil, errors.New("invalid arguments") } opts.Entry = args[1] if opts.Mode == InsertMode { diff --git a/internal/totp/core_test.go b/internal/totp/core_test.go @@ -91,7 +91,7 @@ func TestNewArgumentsErrors(t *testing.T) { if _, err := totp.NewArguments([]string{"ls", "test"}, "a"); err == nil || err.Error() != "list takes no arguments" { t.Errorf("invalid error: %v", err) } - if _, err := totp.NewArguments([]string{"show"}, "a"); err == nil || err.Error() != "missing entry" { + if _, err := totp.NewArguments([]string{"show"}, "a"); err == nil || err.Error() != "invalid arguments" { t.Errorf("invalid error: %v", err) } }