correctly handle errors

yup 08fcc51