emit nested errors thrown by statement