aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/peterh/liner/input.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/peterh/liner/input.go')
-rw-r--r--vendor/github.com/peterh/liner/input.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/peterh/liner/input.go b/vendor/github.com/peterh/liner/input.go
index 904fbf663..95dd5d143 100644
--- a/vendor/github.com/peterh/liner/input.go
+++ b/vendor/github.com/peterh/liner/input.go
@@ -113,7 +113,7 @@ func (s *State) nextPending(timeout <-chan time.Time) (rune, error) {
select {
case thing, ok := <-s.next:
if !ok {
- return 0, errors.New("liner: internal error")
+ return 0, ErrInternal
}
if thing.err != nil {
return 0, thing.err
@@ -137,7 +137,7 @@ func (s *State) readNext() (interface{}, error) {
select {
case thing, ok := <-s.next:
if !ok {
- return 0, errors.New("liner: internal error")
+ return 0, ErrInternal
}
if thing.err != nil {
return nil, thing.err