From 5ec7bb0b3823832d30f92b0521c1a1a4e02e3c5c Mon Sep 17 00:00:00 2001 From: checktheroads Date: Thu, 29 Aug 2019 23:04:28 -0700 Subject: [PATCH] improve default messages --- hyperglass/configuration/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hyperglass/configuration/models.py b/hyperglass/configuration/models.py index b99d8d0..7069552 100644 --- a/hyperglass/configuration/models.py +++ b/hyperglass/configuration/models.py @@ -336,14 +336,14 @@ class Messages(BaseSettings): no_query_type: str = "Query Type must be specified." no_location: str = "A location must be selected." no_input: str = "A target must be specified" - not_allowed: str = "{i} is not allowed." + blacklist: str = "{target} is not allowed." + max_prefix: str = "{target} prefix-length must be shorter than {max_length}." requires_ipv6_cidr: str = ( - "{d} requires IPv6 BGP lookups" "to be in CIDR notation." + "{location} requires IPv6 BGP lookups to be in CIDR notation." ) - invalid_ip: str = "{i} is not a valid IP address." - invalid_dual: str = "{i} is an invalid {qt}." - general: str = "An error occurred." - directed_cidr: str = "{q} queries can not be in CIDR format." + invalid_input: str = "{target} is not a valid {query_type}." + general: str = "Something went wrong." + directed_cidr: str = "{query_type} queries can not be in CIDR format." request_timeout: str = "Request timed out."