Error handling in a working condition