mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 09:50:01 +00:00
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:
parent
3a9e0973fe
commit
0740b01624
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user