fix(config): use provider type in unsupported provider error messages
What this PR does:
Fixes incorrect error messages in PipedPlatformProvider.MarshalJSON() and PipedAnalysisProvider.MarshalJSON() by reporting the unsupported provider Type instead of the provider Name when an invalid provider type is encountered.
Why we need it:
The current error messages can be misleading because they display the provider name rather than the actual invalid type value. This makes configuration issues harder to diagnose and debug. Reporting the unsupported type provides more accurate and actionable feedback to users.
Which issue(s) this PR fixes:
Fixes #6931
Does this PR introduce a user-facing change?:
-
How are users affected by this change:
-
Error messages for unsupported platform and analysis provider types now correctly display the invalid provider type value.
-
Example:
- Before:
unsupported platform provider type: my-provider - After:
unsupported platform provider type: UNKNOWN_TYPE
- Before:
-
-
Is this breaking change:
- No.
-
How to migrate (if breaking change):
- Not applicable.