1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add string-format lib to format error messages

This commit is contained in:
checktheroads
2019-10-10 01:58:28 -07:00
parent 6edd2e70da
commit 8b95f7c1d9
5 changed files with 42 additions and 22 deletions

View File

@@ -13,8 +13,6 @@ from hyperglass.configuration.models._utils import HyperglassModel
class Messages(HyperglassModel):
"""Class model for params.messages"""
no_query_type: str = "A query type must be specified."
no_location: str = "A location must be selected."
no_input: str = "{field} must be specified."
acl_denied: str = "{target} is a member of {denied_network}, which is not allowed."
acl_not_allowed: str = "{target} is not allowed."