mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Improve error message for bad config parameters.
This commit is contained in:
parent
aee54903a6
commit
7a4aa51703
@ -52,7 +52,11 @@ class Application(object):
|
||||
# Ignore unknown names
|
||||
if k not in self.cfg.settings:
|
||||
continue
|
||||
self.cfg.set(k.lower(), v)
|
||||
try:
|
||||
self.cfg.set(k.lower(), v)
|
||||
except:
|
||||
sys.stderr.write("Invalid value for %s: %s\n\n" % (k, v))
|
||||
raise
|
||||
|
||||
# Lastly, update the configuration with any command line
|
||||
# settings.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user