From 6b0e71fa1c18f7a39a80abbff31dd0fc2652b114 Mon Sep 17 00:00:00 2001 From: Jiashen Cao Date: Sun, 24 Sep 2023 11:51:46 -0400 Subject: [PATCH] print error msg if creating built-in functions failed --- evadb/executor/create_function_executor.py | 2 +- evadb/functions/function_bootstrap_queries.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evadb/executor/create_function_executor.py b/evadb/executor/create_function_executor.py index 682ba2f23b..500d1f6869 100644 --- a/evadb/executor/create_function_executor.py +++ b/evadb/executor/create_function_executor.py @@ -435,7 +435,7 @@ def _try_initializing_function( # initializing the function class calls the setup method internally function(**function_args) except Exception as e: - err_msg = f"Error creating function: {str(e)}" + err_msg = f"Error creating function {self.node.name}: {str(e)}" # logger.error(err_msg) raise RuntimeError(err_msg) diff --git a/evadb/functions/function_bootstrap_queries.py b/evadb/functions/function_bootstrap_queries.py index e51e75638a..7422fa9fa0 100644 --- a/evadb/functions/function_bootstrap_queries.py +++ b/evadb/functions/function_bootstrap_queries.py @@ -258,7 +258,7 @@ def init_builtin_functions(db: EvaDBDatabase, mode: str = "debug") -> None: for query in queries: try: execute_query_fetch_all( - db, query, do_not_print_exceptions=True, do_not_raise_exceptions=True + db, query, do_not_print_exceptions=False, do_not_raise_exceptions=True ) except Exception: pass