fix: warn if failed to decrypt master key #234
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解密重装系统前的数据失败时,增加报错信息。
我本来是想重构一下,让 Master Key 解密失败时也能导出无需解密的数据,不过重构到一半看到你在 24c90f5 (feat/library) 也有重构计划,所以就不弄了,我改到一半的结果在 e623041 (分支),修改点如下:
代码就留着供参考,如果你觉得哪些做法不合适可以指正讨论一下,或者直接无视就好。