checkErrorsMulti function

checkErrorsMulti