Simple error reporting for config file

This commit is contained in:
Steve Zingman 2016-07-25 14:03:01 -04:00
parent f8ec4d9069
commit 47095c9fe5
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ def build_config(_config_file):
}})
CONFIG['MASTERS'][section].update({'CLIENTS': {}})
except:
except ConfigParser.Error, err:
# Very simple error reporting
print "Cannot parse configuration file. %s" %err
sys.exit('Could not parse configuration file, exiting...')
return CONFIG