From a2efbc1dda26db9a69e2d056213f90b49412bee8 Mon Sep 17 00:00:00 2001 From: Charles Butler Date: Mon, 10 Aug 2015 17:42:16 -0400 Subject: [PATCH] refactor the error message, and properly scope to a CRITICAL warning --- hooks/hooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/hooks.py b/hooks/hooks.py index 5aa2a5a..1b81cd1 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -23,7 +23,8 @@ try: leader_status = hookenv.is_leader() except NotImplementedError: - hookenv.log('This charm requires Juju 1.22.0 or greater. Panic and exit!' + hookenv.log('This charm requires Leader Election. Juju >= 1.23.2.' + ' Leader election binary not found, Panic and exit!', 'CRITICAL') sys.exit(1)