Update to output error messages