Skip to content

Commit

Permalink
DH-5232/changing the error message for no sql (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored Jan 10, 2024
1 parent 396b493 commit c7c03c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataherald/sql_generator/create_sql_query_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_sql_query_status(
"""Find the sql query status and populate the fields sql_query_result, sql_generation_status, and error_message"""
if query == "":
sql_generation.status = "INVALID"
sql_generation.error = "No SQL query has been generated."
sql_generation.error = "Sorry, we couldn't generate an SQL from your prompt"
else:
try:
query = db.parser_to_filter_commands(query)
Expand Down

0 comments on commit c7c03c9

Please sign in to comment.