Commit 93d0d8a
committed
fix: raise SQLMeshError when invalidating a nonexistent environment
The sqlmesh invalidate command previously accepted any environment name,
even if the environment did not exist, silently reporting success. Now
it checks that the environment exists first and raises a clear
SQLMeshError if it does not.
Fixes #5621
Signed-off-by: Nuzia Rijki <noezhiya@gmail.com>1 parent fa46264 commit 93d0d8a
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1834 | 1837 | | |
1835 | 1838 | | |
1836 | 1839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1205 | 1221 | | |
1206 | 1222 | | |
1207 | 1223 | | |
| |||
0 commit comments