From 1c921d43cad5ec9bf789ab3cf8a1bcc621673768 Mon Sep 17 00:00:00 2001 From: Ilya Trushchenko Date: Wed, 7 Feb 2024 18:52:45 -0500 Subject: [PATCH] [BUG] Fix min length error output (#67) --- slackblocks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slackblocks/utils.py b/slackblocks/utils.py index d26ae62..30eca58 100644 --- a/slackblocks/utils.py +++ b/slackblocks/utils.py @@ -153,7 +153,7 @@ def validate_string( if min_length and length < min_length: raise InvalidUsageError( f"Argument to field `{field_name}` ({length} characters) " - f"is less than minimum length of {max_length} characters" + f"is less than minimum length of {min_length} characters" ) if max_length and length > max_length: raise InvalidUsageError(