Add hook for display to report errors