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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user