* Added a missing error handling code