simplify Equal error message code

there is probably a better solution involving multiple loggings