Function edgeErrorsFor