dont append <pre> if there are no errors to show