Skip to content

Commit

Permalink
Merge pull request #584 from rrrds/master
Browse files Browse the repository at this point in the history
Fix #544
  • Loading branch information
Yamashi authored Jul 26, 2016
2 parents 9407455 + 69d4d8e commit 4ad24b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion PoGo.NecroBot.Logic/State/LoginState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ public IState Execute(Context ctx, StateMachine machine)
switch (ctx.Settings.AuthType)
{
case AuthType.Ptc:
ctx.Client.Login.DoPtcLogin(ctx.Settings.PtcUsername, ctx.Settings.PtcPassword).Wait();
try
{
ctx.Client.Login.DoPtcLogin(ctx.Settings.PtcUsername, ctx.Settings.PtcPassword).Wait();
}
catch (System.AggregateException ae)
{
throw ae.Flatten().InnerException;
}
break;
case AuthType.Google:
ctx.Client.Login.DoGoogleLogin().Wait();
Expand Down

0 comments on commit 4ad24b5

Please sign in to comment.