Inprove error handling
Add a failing example