Add error info for when wait_for_expected_clause fails