Minor UI fix and better logging when license cannot be found
This commit is contained in:
parent
0c4dc717b0
commit
80707d71d0
2 changed files with 9 additions and 1 deletions
2
app.py
2
app.py
|
@ -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')
|
||||
|
|
Reference in a new issue