mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-29 22:21:25 +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>();
|
||||
}
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ namespace Bit.Core.Services
|
||||
{
|
||||
if (e.Error == null || e.Error.StatusCode != System.Net.HttpStatusCode.NotFound)
|
||||
{
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
return await _cryptoService.MakeKeyAsync(masterPassword, email, kdf, kdfIterations);
|
||||
|
@ -732,7 +732,7 @@ namespace Bit.Core.Services
|
||||
catch (ApiException e)
|
||||
{
|
||||
await DeleteAttachmentAsync(id, attachmentId);
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -219,12 +219,12 @@ namespace Bit.Core.Services
|
||||
{
|
||||
response = await LegacyServerSendFileUpload(request, send, encryptedFileData);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch
|
||||
{
|
||||
if (response != default){
|
||||
await _apiService.DeleteSendAsync(response.Id);
|
||||
}
|
||||
throw e;
|
||||
throw;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user