Don't fail diagnostic if the severity isn't error.
Don't fail diagnostic if the severity isn't error.

If a pass emits a warning, then the status will be set to `UnknownError` causing pipelines to fail. But we shouldn't if a pass/pattern just emits a warning.
