Apply suggestions from code review

Co-authored-by: tersec <tersec@users.noreply.github.com>
This commit is contained in:
alex 2024-05-30 22:12:46 +08:00 committed by GitHub
parent 757a830ef3
commit b642db966c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1813,7 +1813,7 @@ proc importKeystoresFromDir*(rng: var HmacDrbgContext, meth: ImportMethod,
try:
let importedFiles = walkDirRec(importedDir).toSeq
if importedFiles.len == 0:
fatal "No keystore file found at kyes path"
fatal "No keystore file found at keystore path"
quit 1
var
@ -1905,7 +1905,7 @@ proc importKeystoresFromDir*(rng: var HmacDrbgContext, meth: ImportMethod,
if password.len == 0:
break
if not hasValid and invalidFlag:
fatal "Not found valid file,the keystore file must ending by .json and not start with deposit_data"
fatal "No valid keystore file found; the keystore file must have a .json extension and not start with deposit_data"
quit 1
except OSError: