catching error in error catching