diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/client/input.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/client/input.go b/pkg/client/input.go index 8c814a6..bcdab13 100644 --- a/pkg/client/input.go +++ b/pkg/client/input.go @@ -2,9 +2,8 @@ package client import ( "bufio" + "fmt" "os" - - "github.com/pkg/errors" ) // getValidInput returns the selected menu command as a string or an error @@ -15,7 +14,7 @@ func (s *State) getValidInput() (string, error) { for { input, err := reader.ReadByte() if err != nil { - return "", errors.Wrapf(err, "Could not read byte from stdin") + return "", fmt.Errorf("Could not read byte from stdin : %w", err) } for _, menuEntry := range menu.MenuEntries { if []byte(menuEntry.Key)[0] == input { |