Skip to content

Commit c12e063

Browse files
Change NSB0004 saga diagnostic from Warning to Error
Co-authored-by: danielmarbach <174258+danielmarbach@users.noreply.github.com>
1 parent ca1c491 commit c12e063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NServiceBus.Core.Analyzer/Sagas/SagaDiagnostics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ static class SagaDiagnostics
1616

1717
public static readonly DiagnosticDescriptor SagaMappingExpressionCanBeSimplified = new(
1818
id: DiagnosticIds.SagaMappingExpressionCanBeSimplified,
19-
title: "Saga mapping expressions can be simplified",
20-
messageFormat: "The saga mapping contains multiple .ToSaga(…) expressions which can be simplified using mapper.MapSaga(…).ToMessage<T>(…) syntax.",
19+
title: "Saga mapping expressions must be rewritten",
20+
messageFormat: "The saga mapping contains multiple .ToSaga(…) expressions which must be rewritten using mapper.MapSaga(…).ToMessage<T>(…) syntax. Use the code fix to transition to the new syntax.",
2121
category: DiagnosticCategory,
22-
defaultSeverity: DiagnosticSeverity.Warning,
22+
defaultSeverity: DiagnosticSeverity.Error,
2323
isEnabledByDefault: true);
2424

2525
public static readonly DiagnosticDescriptor MultipleCorrelationIdValues = new(

0 commit comments

Comments
 (0)