Added example of handling errors