Skip to content

Commit

Permalink
Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Nov 28, 2024
1 parent 9016214 commit 75e33c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/functions/table/create_property_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ unique_ptr<FunctionData> CreatePropertyGraphFunction::CreatePropertyGraphBind(

if (!table) {
throw Exception(ExceptionType::INVALID,
"Table " + vertex_table->catalog_name + "." + vertex_table->table_name + " not found");
"Table " + (vertex_table->catalog_name.empty() ? DEFAULT_SCHEMA : vertex_table->catalog_name) + "." + vertex_table->table_name + " not found");
}

CheckPropertyGraphTableColumns(vertex_table, *table);
Expand Down Expand Up @@ -209,7 +209,7 @@ unique_ptr<FunctionData> CreatePropertyGraphFunction::CreatePropertyGraphBind(
edge_table->table_name, OnEntryNotFound::RETURN_NULL);
if (!table) {
throw Exception(ExceptionType::INVALID,
"Table " + edge_table->catalog_name + "." + edge_table->table_name + " not found");
"Table " + (edge_table->catalog_name.empty() ? DEFAULT_SCHEMA : edge_table->catalog_name) + "." + edge_table->table_name + " not found");
}

CheckPropertyGraphTableColumns(edge_table, *table);
Expand Down

0 comments on commit 75e33c5

Please sign in to comment.