show partial list of keys if an error is thrown
This commit is contained in:
parent
93e8c74ec6
commit
76e624f12f
|
@ -123,6 +123,7 @@ public class ImportKeysListLoader
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Timber.e(e, "IOException on parsing key file! Return NoValidKeysException!");
|
Timber.e(e, "IOException on parsing key file! Return NoValidKeysException!");
|
||||||
|
if (mData.isEmpty()) {
|
||||||
OperationResult.OperationLog log = new OperationResult.OperationLog();
|
OperationResult.OperationLog log = new OperationResult.OperationLog();
|
||||||
log.add(OperationResult.LogType.MSG_GET_NO_VALID_KEYS, 0);
|
log.add(OperationResult.LogType.MSG_GET_NO_VALID_KEYS, 0);
|
||||||
GetKeyResult getKeyResult = new GetKeyResult(GetKeyResult.RESULT_ERROR_NO_VALID_KEYS, log);
|
GetKeyResult getKeyResult = new GetKeyResult(GetKeyResult.RESULT_ERROR_NO_VALID_KEYS, log);
|
||||||
|
@ -130,6 +131,7 @@ public class ImportKeysListLoader
|
||||||
mEntryListWrapper = new AsyncTaskResultWrapper<>(mData, getKeyResult);
|
mEntryListWrapper = new AsyncTaskResultWrapper<>(mData, getKeyResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
private InputData getInputData(BytesLoaderState ls)
|
private InputData getInputData(BytesLoaderState ls)
|
||||||
|
|
Loading…
Reference in a new issue