mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
throw exceptions for testing
This commit is contained in:
parent
cf079a159f
commit
07eabad18d
1 changed files with 5 additions and 2 deletions
|
@ -81,7 +81,8 @@ namespace Bit.Android.Services
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to decrypt from secure storage.");
|
Console.WriteLine("Failed to decrypt from secure storage.");
|
||||||
_settings.Remove(formattedKey);
|
_settings.Remove(formattedKey);
|
||||||
return null;
|
throw;
|
||||||
|
//return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,6 +110,7 @@ namespace Bit.Android.Services
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to encrypt to secure storage.");
|
Console.WriteLine("Failed to encrypt to secure storage.");
|
||||||
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +192,8 @@ namespace Bit.Android.Services
|
||||||
Console.WriteLine("Cannot get AesKey.");
|
Console.WriteLine("Cannot get AesKey.");
|
||||||
_keyStore.DeleteEntry(KeyAlias);
|
_keyStore.DeleteEntry(KeyAlias);
|
||||||
_settings.Remove(AesKey);
|
_settings.Remove(AesKey);
|
||||||
return null;
|
throw;
|
||||||
|
//return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue