mirror of https://github.com/docker/docs.git
When the user insists on an invalid passphrase (or aborts the operation), CryptoService.GetPrivateKey will try the correct root location first, correctly failing, and then try to look for the root key in the $gun subdirectory, and so will return the last error, a confusing ”open $path: no such file or directory”. So, recognize the passphrase-related errors and fail with them directly. Signed-off-by: Miloslav Trmač <mitr@redhat.com> |
||
|---|---|---|
| .. | ||
| certificate.go | ||
| certificate_test.go | ||
| crypto_service.go | ||
| crypto_service_test.go | ||
| import_export.go | ||
| import_export_test.go | ||