Add error reporting functions.