Store account list in accounts.json file

This commit is contained in:
AsamK committed 2022-02-11 21:03:54 +01:00
1 parent ff6b733cd0
commit 0476895c3d
5 files changed
+208 -21

No files matched your search

+9 -4
View File
@@ -163,10 +163,15 @@ public class App {
? TrustNewIdentity.ON_FIRST_USE
: trustNewIdentityCli == TrustNewIdentityCli.ALWAYS ? TrustNewIdentity.ALWAYS : TrustNewIdentity.NEVER;
final SignalAccountFiles signalAccountFiles = new SignalAccountFiles(configPath,
serviceEnvironment,
BaseConfig.USER_AGENT,
trustNewIdentity);
final SignalAccountFiles signalAccountFiles;
try {
signalAccountFiles = new SignalAccountFiles(configPath,
serviceEnvironment,
BaseConfig.USER_AGENT,
trustNewIdentity);
} catch (IOException e) {
throw new IOErrorException("Failed to read local accounts list", e);
}
if (command instanceof ProvisioningCommand provisioningCommand) {
if (account != null) {