mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-30 22:31:26 +01:00
remove re-throws of exceptions, hiding stack trace (#1680)
* remove re-throws of exceptions, hiding stack trace * revert to catch all ApiExceptions * add back throw in auditService * whitespace
This commit is contained in:
parent
adb8bb4f1b
commit
ad3b401ed3
@ -55,7 +55,7 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
return new List<BreachAccountResponse>();
|
return new List<BreachAccountResponse>();
|
||||||
}
|
}
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -272,7 +272,7 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
if (e.Error == null || e.Error.StatusCode != System.Net.HttpStatusCode.NotFound)
|
if (e.Error == null || e.Error.StatusCode != System.Net.HttpStatusCode.NotFound)
|
||||||
{
|
{
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return await _cryptoService.MakeKeyAsync(masterPassword, email, kdf, kdfIterations);
|
return await _cryptoService.MakeKeyAsync(masterPassword, email, kdf, kdfIterations);
|
||||||
|
@ -732,7 +732,7 @@ namespace Bit.Core.Services
|
|||||||
catch (ApiException e)
|
catch (ApiException e)
|
||||||
{
|
{
|
||||||
await DeleteAttachmentAsync(id, attachmentId);
|
await DeleteAttachmentAsync(id, attachmentId);
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,12 +219,12 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
response = await LegacyServerSendFileUpload(request, send, encryptedFileData);
|
response = await LegacyServerSendFileUpload(request, send, encryptedFileData);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch
|
||||||
{
|
{
|
||||||
if (response != default){
|
if (response != default){
|
||||||
await _apiService.DeleteSendAsync(response.Id);
|
await _apiService.DeleteSendAsync(response.Id);
|
||||||
}
|
}
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user