provide meaninful output when a bridge is configured for a system not in the main configuration

This commit is contained in:
n0mjs710 2019-02-02 16:46:40 -06:00
parent 1c5aa6eec5
commit 8406148d0a
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def make_bridges(_rules):
for _bridge in bridge_file.BRIDGES:
for _system in bridge_file.BRIDGES[_bridge]:
if _system['SYSTEM'] not in CONFIG['SYSTEMS']:
sys.exit('ERROR: Conference bridges found for system not configured main configuration')
sys.exit('ERROR: Conference bridge "{}" references a system named "{}" that is not enabled in the main configuration'.format(_bridge, _system['SYSTEM']))
_system['TGID'] = bytes_3(_system['TGID'])
for i, e in enumerate(_system['ON']):