File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments