MINOR: log context when failing to yield table (#16977)

* chore: log context when failing to yield table

* changed error to db/schema/table
This commit is contained in:
Imri Paran 2024-07-10 14:02:49 +02:00 committed by GitHub
parent 3a9e0973fe
commit 0740b01624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -567,7 +567,10 @@ class CommonDbSourceService(
self.context.get_global().table_views.append(table_view)
except Exception as exc:
error = f"Unexpected exception to yield table [{table_name}]: {exc}"
error = (
f"Unexpected exception to yield table "
f"(database=[{self.context.get().database}], schema=[{schema_name}], table=[{table_name}]): {exc}"
)
yield Either(
left=StackTraceError(
name=table_name, error=error, stackTrace=traceback.format_exc()