catch the assertion error