vendor: update liner to fix docker and mips bugs

This commit is contained in:
Péter Szilágyi
2017-10-05 15:57:33 +03:00
parent c0a1f1c907
commit 41d361565b
4 changed files with 84 additions and 20 deletions

View File

@ -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