Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Don't send exception to insights if user cancels login
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyan99 committed Mar 23, 2016
1 parent 2a7d0f5 commit 0b946e1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public async Task<MobileServiceUser> LoginAsync(IMobileServiceClient client,
}
catch (Exception e)
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
if (!e.Message.Contains("cancelled"))
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
}
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public async Task<MobileServiceUser> LoginAsync(IMobileServiceClient client,
}
catch (Exception e)
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
if (!e.Message.Contains("cancelled"))
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
}
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ public async Task<MobileServiceUser> LoginAsync(IMobileServiceClient client,
}
catch (Exception e)
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
if (!e.Message.Contains("cancelled"))
{
e.Data["method"] = "LoginAsync";
Logger.Instance.Report(e);
}
}

return null;
Expand Down

0 comments on commit 0b946e1

Please sign in to comment.