Log an error on viewing