]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix error description
authorAnton Kovalevich <kai3341@gmail.com>
Wed, 31 Mar 2021 12:30:21 +0000 (15:30 +0300)
committerAnton Kovalevich <kai3341@gmail.com>
Wed, 31 Mar 2021 12:30:21 +0000 (15:30 +0300)
lib/sqlalchemy/dialects/mysql/base.py

index 264d238f209e6fa50966e00a13b477a92158c817..8fbe3edde96054cf570c103911933ba45a707e8a 100644 (file)
@@ -1616,10 +1616,13 @@ class MySQLCompiler(compiler.SQLCompiler):
         flag_combination = (boolean_mode, natural_language, query_expansion)
 
         if flag_combination not in self.match_valid_flag_combinations:
+            flags = {
+                'mysql_boolean_mode': boolean_mode,
+                'mysql_natural_language': natural_language,
+                'mysql_query_expansion': query_expansion,
+            }
             raise exc.CompileError(
-                    "The `modifier` keyword argument must be a member of "
-                    "`sqlalchemy.mysql.expression_enum."
-                    "MatchExpressionModifier` enum or `None`"
+                    "Flag combination does not make sence: %s." % flags
                 )
 
         match_clause = self.process(binary.left, **kw)