Skip to content

Commit 2b47b88

Browse files
committed
[log] enrich returned trace message
1 parent 4e4c70b commit 2b47b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sub_platforms/sql_opt/videx/videx_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def ask(self, req_json_item: dict, result2str: bool = True, raise_out: bool = Fa
190190
return success_code, success_msg, expect_resp
191191

192192
if db_task_stats.get_table_meta(videx_db, table_name) is None:
193-
return 404, f"Not Found table_name: {table_name}", {}
193+
return 404, f"Not Found table_name: {videx_db}.{table_name}", {}
194194
func = str2VidexFunc(func_str)
195195
if func == VidexFunc.not_supported:
196196
return 400, f"Not Supported function: {func_str}", {}
@@ -219,7 +219,7 @@ def ask(self, req_json_item: dict, result2str: bool = True, raise_out: bool = Fa
219219
raise
220220
logging.error(f"meet error in {target_engine}, {videx_db}, {table_name}, {func_str}: {e}, "
221221
f"{traceback.format_exc()}")
222-
return 500, "not implement yet", {}
222+
return 500, str(e), {}
223223
if result2str:
224224
final_resp = {k: str(v) for k, v in resp.items()}
225225
else:

0 commit comments

Comments
 (0)