From ae01f20852fbc5ef08518c565555d395d0231918 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 22 Jan 2025 09:37:58 -0500 Subject: [PATCH] chore: remove stacktrace from new message --- lib/mix/task.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/mix/task.ex b/lib/mix/task.ex index 5d905ef..0865d01 100644 --- a/lib/mix/task.ex +++ b/lib/mix/task.ex @@ -235,14 +235,16 @@ defmodule Igniter.Mix.Task do if last && String.ends_with?(last, ",") do arg_name = String.replace(to_string(k), "_", "-") - raise """ + Mix.shell().error(""" Found trailing comma in `--#{arg_name}` at `#{last}` Please remove the trailing comma. On some platforms, argument parsing requires quotes around argument values containing commas. So instead of `--#{arg_name} foo,bar`, you may need `--#{arg_name} "foo,bar"` - """ + """) + + exit({:shutdown, 1}) end end) |> Enum.flat_map(&String.split(&1, ",", trim: true))