Add error output function.