Minor UI fix and better logging when license cannot be found

This commit is contained in:
Joseph Schorr 2014-08-12 21:04:16 -04:00
parent 0c4dc717b0
commit 80707d71d0
2 changed files with 9 additions and 1 deletions

2
app.py
View file

@ -54,7 +54,7 @@ else:
try:
app.config.update(load_license(LICENSE_FILENAME))
except IOError:
raise RuntimeError('No license file found, please check your configuration')
raise RuntimeError('License file %s not found; please check your configuration' % LICENSE_FILENAME)
if app.config.get('LICENSE_EXPIRATION', datetime.min) < datetime.utcnow():
raise RuntimeError('License has expired, please contact support@quay.io')