fix: improve error message for bad token

This commit is contained in:
2023-01-05 20:10:05 +01:00
parent 42166550f9
commit 178ca55aa2

View File

@@ -147,7 +147,7 @@ def default():
and_(Service.service == service, Service.token == token)).first()
if not verifiedServiceObj:
return ("Service with this token not found in DB", 401)
return ("Service ({}) with this token ({}) not found in DB".format(service, token), 401)
else:
status = Status(service=service, timestamp=timestamp, status=status, info_text=text)
db.session.merge(status)