added connection error in order to work with corrupt repos