Error handling demo