You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Components/Components/src/Routing/Router.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ public async Task SetParametersAsync(ParameterView parameters)
147
147
#pragma warning disable CS0618// Type or member is obsolete
148
148
if(NotFound!=null)
149
149
{
150
-
thrownewInvalidOperationException("Both NotFound and NotFoundPage parameters are set on Router component. NotFoundPage is preferred and NotFound will be deprecated. Consider using only NotFoundPage.");
150
+
thrownewInvalidOperationException($"Setting {nameof(NotFound)} and {nameof(NotFoundPage)} properties simultaneously is not supported. Use either {nameof(NotFound)} or {nameof(NotFoundPage)}.");
151
151
}
152
152
#pragma warning restore CS0618// Type or member is obsolete
0 commit comments