Skip to content

Commit 6709735

Browse files
committed
PR feedback
1 parent e28ab93 commit 6709735

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

sqlmesh/core/config/connection.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,17 @@ def validate(cls: t.Any, data: t.Any) -> t.Any:
6666
return data
6767
try:
6868
importlib.import_module(import_name)
69-
except ImportError as e:
69+
except ImportError:
7070
if debug_mode_enabled():
7171
raise
7272

73-
logger.error(str(e))
73+
logger.exception("Failed to import the engine library")
74+
7475
raise ConfigError(
75-
f"Failed to import the '{engine_type}' engine library. Please run `pip install \"sqlmesh[{extra_name}]\"`."
76+
f"Failed to import the '{engine_type}' engine library. This may be due to a missing "
77+
"or incompatible installation. Please ensure the required dependency is installed by "
78+
f"running: pip install \"sqlmesh[{extra_name}]\". For more details, check the logs "
79+
"in the 'logs/' folder, or rerun the command with the '--debug' flag."
7680
)
7781

7882
return data

0 commit comments

Comments
 (0)