diff --git a/src/Microsoft.AspNetCore.SpaServices.Extensions/SpaOptions.cs b/src/Microsoft.AspNetCore.SpaServices.Extensions/SpaOptions.cs index 65912e5..a562b87 100644 --- a/src/Microsoft.AspNetCore.SpaServices.Extensions/SpaOptions.cs +++ b/src/Microsoft.AspNetCore.SpaServices.Extensions/SpaOptions.cs @@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.SpaServices { if (string.IsNullOrEmpty(value.Value)) { - throw new ArgumentNullException($"The value for {nameof(DefaultPage)} cannot be null or empty."); + throw new ArgumentException($"The value for {nameof(DefaultPage)} cannot be null or empty."); } _defaultPage = value;