diff --git a/lib/mix/tasks/check_safety.ex b/lib/mix/tasks/check_safety.ex index 7e591eb..68cd9e5 100644 --- a/lib/mix/tasks/check_safety.ex +++ b/lib/mix/tasks/check_safety.ex @@ -24,7 +24,7 @@ defmodule Mix.Tasks.ExcellentMigrations.CheckSafety do |> Logger.warn() end) - System.stop(1) + Mix.raise("Dangerous operations detected in migrations!") end end end diff --git a/lib/mix/tasks/migrate.ex b/lib/mix/tasks/migrate.ex index 85f10b2..584e28a 100644 --- a/lib/mix/tasks/migrate.ex +++ b/lib/mix/tasks/migrate.ex @@ -16,7 +16,7 @@ defmodule Mix.Tasks.ExcellentMigrations.Migrate do |> Logger.error() end) - System.stop(1) + Mix.raise("Dangerous operations detected in migrations!") end end end