Add Log.error in case of failure

This commit is contained in:
VirtuBox
2019-10-30 06:11:57 +01:00
parent 04361eecf5
commit d3a4947831

View File

@@ -83,6 +83,8 @@ class WOInfoController(CementBaseController):
wconfig = config['www'] wconfig = config['www']
elif config.has_section('www-php72'): elif config.has_section('www-php72'):
wconfig = config['www-php72'] wconfig = config['www-php72']
else:
Log.error(self, 'Unable to parse configuration')
www_listen = wconfig['listen'] www_listen = wconfig['listen']
www_ping_path = wconfig['ping.path'] www_ping_path = wconfig['ping.path']
www_pm_status_path = wconfig['pm.status_path'] www_pm_status_path = wconfig['pm.status_path']
@@ -165,6 +167,8 @@ class WOInfoController(CementBaseController):
wconfig = config['www'] wconfig = config['www']
elif config.has_section('www-php73'): elif config.has_section('www-php73'):
wconfig = config['www-php73'] wconfig = config['www-php73']
else:
Log.error(self, 'Unable to parse configuration')
www_listen = wconfig['listen'] www_listen = wconfig['listen']
www_ping_path = wconfig['ping.path'] www_ping_path = wconfig['ping.path']
www_pm_status_path = wconfig['pm.status_path'] www_pm_status_path = wconfig['pm.status_path']