Generator error handling extension