1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 01:13:30 +00:00

Handle all exceptions from API calls

This commit is contained in:
Kyle Spearrin
2017-02-06 09:55:35 -05:00
parent d112e0ea42
commit 749508871b
7 changed files with 16 additions and 16 deletions

View File

@@ -84,7 +84,7 @@ namespace Bit.App.Repositories
TokenService.RefreshToken = tokenResponse.RefreshToken;
TokenService.AuthBearer = null;
}
catch(WebException)
catch
{
return webException.Invoke();
}
@@ -119,7 +119,7 @@ namespace Bit.App.Repositories
TokenService.Token = tokenResponse.AccessToken;
TokenService.RefreshToken = tokenResponse.RefreshToken;
}
catch(WebException)
catch
{
return webException.Invoke();
}