Commit b798b2e
committed
fix: error when invalidating a nonexistent environment
sqlmesh invalidate ENVIRONMENT reported success even when the environment
did not exist, so a mistyped name looked like it worked. Check the
environment exists first and raise a clear error (nonzero exit) otherwise.
Fixes #5621
Signed-off-by: Nishchay Mahor <nishchaymahor@gmail.com>1 parent 909ee91 commit b798b2e
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1879 | 1879 | | |
1880 | 1880 | | |
1881 | 1881 | | |
| 1882 | + | |
| 1883 | + | |
1882 | 1884 | | |
1883 | 1885 | | |
1884 | 1886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1928 | 1928 | | |
1929 | 1929 | | |
1930 | 1930 | | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
1931 | 1945 | | |
1932 | 1946 | | |
1933 | 1947 | | |
| |||
0 commit comments