We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14dede9 commit 14a417fCopy full SHA for 14a417f
lib/charms/observability_libs/v0/cert_handler.py
@@ -49,10 +49,13 @@
49
generate_csr,
50
generate_private_key,
51
)
52
-except ImportError:
+except ImportError as e:
53
raise ImportError(
54
- "charms.tls_certificates_interface.v2.tls_certificates is missing; please get it through charmcraft fetch-lib"
55
- )
+ "failed to import charms.tls_certificates_interface.v2.tls_certificates; "
+ "Either the library itself is missing (please get it through charmcraft fetch-lib) "
56
+ "or one of its dependencies is unmet."
57
+ ) from e
58
+
59
import logging
60
61
from ops.charm import CharmBase, RelationBrokenEvent
0 commit comments