Fix incorrect exception messages

This commit is contained in:
Troy Dai 2016-07-26 09:02:41 -07:00
parent 6f46bc94f8
commit 210c4b2061
1 changed files with 2 additions and 2 deletions

View File

@ -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)