diff --git a/library/git b/library/git index 0c9592d702..f02616394f 100755 --- a/library/git +++ b/library/git @@ -190,7 +190,7 @@ else: # handle errors from clone or pull -if out.find('error') != -1: +if out.find('error') != -1 or err.find('ERROR') != -1: fail_json(out=out, err=err) # switch to version specified regardless of whether