You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sqlmesh/core/config/loader.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ def load_config_from_paths(
91
91
"SQLMesh project config could not be found. Point the cli to the project path with `sqlmesh -p`. If you haven't set up the SQLMesh project, run `sqlmesh init`."
92
92
)
93
93
94
+
yaml_config_path: t.Optional[Path] =None
94
95
forpathin [*project_paths, *personal_paths]:
95
96
ifnotpath.exists():
96
97
continue
@@ -107,8 +108,9 @@ def load_config_from_paths(
107
108
ifextensionin ("yml", "yaml"):
108
109
ifconfig_name!="config"andnotpython_config:
109
110
raiseConfigError(
110
-
"YAML configs do not support multiple configs. Use Python instead."
111
+
"YAML configs do not support multiple configs. Use Python instead.",
+"\n\nVerify your config.yaml and environment variables."
154
+
+"\n\nVerify your config.yaml and environment variables.",
155
+
location=yaml_config_path,
153
156
)
154
157
155
158
no_dialect_err_msg="Default model SQL dialect is a required configuration parameter. Set it in the `model_defaults` `dialect` key in your config file."
0 commit comments