Fix incorrect exception messages
This commit is contained in:
parent
6f46bc94f8
commit
210c4b2061
|
|
@ -44,12 +44,12 @@ namespace Microsoft.AspNetCore.Authentication
|
||||||
}
|
}
|
||||||
else if (authResult == null)
|
else if (authResult == null)
|
||||||
{
|
{
|
||||||
exception = new InvalidOperationException("Invalide return state, unable to redirect.");
|
exception = new InvalidOperationException("Invalid return state, unable to redirect.");
|
||||||
}
|
}
|
||||||
else if (!authResult.Succeeded)
|
else if (!authResult.Succeeded)
|
||||||
{
|
{
|
||||||
exception = authResult?.Failure ??
|
exception = authResult?.Failure ??
|
||||||
new InvalidOperationException("Invalide return state, unable to redirect.");
|
new InvalidOperationException("Invalid return state, unable to redirect.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue