Error handling example not displaying the correct behavior (#3788)