# Expect the command to fail; exit code 1.
! atlas migrate lint --env local --latest=2 > got1.txt
cmp got1.txt expected1.txt

-- atlas.hcl --
env "local" {
    dev = "URL"
}
-- migrations/1.sql --
CREATE TABLE users (id int);
-- migrations/2.sql --
DROP TABLE users;
-- expected1.txt --
2.sql: destructive changes detected:

	L1: Dropping table "users"

