Skip to content

Commit

Permalink
print error msg if creating built-in functions failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jiashenC committed Sep 24, 2023
1 parent 27e2635 commit 6b0e71f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evadb/executor/create_function_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion evadb/functions/function_bootstrap_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b0e71f

Please sign in to comment.