mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user