Pass error message to assert