Slightly nicer error message.

This commit is contained in:
James Muscat committed 2015-07-01 21:46:16 +01:00
1 parent a2ebb94c7a
commit f591d3a815
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ def parse_and_error_handle(data):
if parsed_message["$schemaRef"] in Settings.GATEWAY_OUTDATED_SCHEMAS.keys():
response.status = '426 Upgrade Required' # Bottle (and underlying httplib) don't know this one
statsCollector.tally("outdated")
return "FAIL: The schema you have used need an upgrade. Update your software."
return "FAIL: The schema you have used is no longer supported. Please check for an updated version of your application."
validationResults = validator.validate(parsed_message)