mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Improve unable decode private key error messages (#2675)
This commit is contained in:
1 file changed
+2
-2
@@ -26,11 +26,11 @@ func loadPrivateKeys(_ account: String, _ privateDSAKey: SecKey?, _ privateEdStr
|
||||
print("Error: specifying private key as the argument is no longer supported.")
|
||||
return nil
|
||||
} else {
|
||||
print("Error: Private key not found in decoded argument, which has \(data.count) bytes. Please provide a valid key.")
|
||||
print("Error: Private key not decoded from the argument, which has \(data.count) bytes. Please provide a valid key and confirm the contents of the key are correct.")
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
print("Error: Private key not found in the argument. Please provide a valid key.")
|
||||
print("Error: Private key not decoded from the argument because it isn't base64 encoded. Please provide a valid key and confirm the contents of the key are correct.")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user