Snooz82 / robotframework-crypto

Library to securely handle credentials for Robot Framework.
Apache License 2.0
21 stars 13 forks source link

Error message on incorrect private key password is misleading #16

Open MichaelHallik opened 2 years ago

MichaelHallik commented 2 years ago

If you provide an incorrect password (for the private key) as an import argument the following error will occur:

"Calling method '_start_test' of listener 'CryptoLibrary' failed: AttributeError: No private key known or found in file. Generate private key first!"

Since the password is incorrect, the CryptoLibrary cannot access the private key and thus spits out this error. It would be nice though if it would tell us the actual, underlying root cause, which is that the password didn't check out.