Merge pull request #17617 from askb/17168_pull_error_fix

Fix for #17168 issue
This commit is contained in:
Alexander Morozov 2015-11-17 16:10:44 -08:00
commit fc2531f15c

View file

@ -13,6 +13,7 @@ import (
"path/filepath"
"runtime"
"strings"
"syscall"
"time"
"github.com/Sirupsen/logrus"
@ -219,6 +220,10 @@ func ContinueOnError(err error) bool {
return shouldV2Fallback(v)
case *client.UnexpectedHTTPResponseError:
return true
case error:
if val := strings.Contains(err.Error(), strings.ToLower(syscall.ENOSPC.Error())); val {
return false
}
}
// let's be nice and fallback if the error is a completely
// unexpected one.