1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00: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:
Jake Fink
2021-12-16 15:34:33 -05:00
committed by GitHub
parent adb8bb4f1b
commit ad3b401ed3
4 changed files with 5 additions and 5 deletions

View File

@@ -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: