ArgumentNullException -> ArgumentException
This commit is contained in:
parent
a16343681b
commit
a83ec3a053
|
|
@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.SpaServices
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(value.Value))
|
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;
|
_defaultPage = value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue