Add a diagnostic.