From d3a49478310bb623cd60f48a8e9ce26dbfb81ac2 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 30 Oct 2019 06:11:57 +0100 Subject: [PATCH] Add Log.error in case of failure --- wo/cli/plugins/info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wo/cli/plugins/info.py b/wo/cli/plugins/info.py index 488e0db..2d04b0e 100644 --- a/wo/cli/plugins/info.py +++ b/wo/cli/plugins/info.py @@ -83,6 +83,8 @@ class WOInfoController(CementBaseController): wconfig = config['www'] elif config.has_section('www-php72'): wconfig = config['www-php72'] + else: + Log.error(self, 'Unable to parse configuration') www_listen = wconfig['listen'] www_ping_path = wconfig['ping.path'] www_pm_status_path = wconfig['pm.status_path'] @@ -165,6 +167,8 @@ class WOInfoController(CementBaseController): wconfig = config['www'] elif config.has_section('www-php73'): wconfig = config['www-php73'] + else: + Log.error(self, 'Unable to parse configuration') www_listen = wconfig['listen'] www_ping_path = wconfig['ping.path'] www_pm_status_path = wconfig['pm.status_path']