Skip to content

Commit 12f6a9a

Browse files
author
José Valim
committed
Fix some invalid error messages from Mix
1 parent fe340fe commit 12f6a9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/mix/lib/mix/tasks/escriptize.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ defmodule Mix.Tasks.Escriptize do
130130

131131
defp app_tuples(app) do
132132
case :code.where_is_file('#{app}.app') do
133-
:non_existing -> raise Mix.Error, "Could not find application #{app}"
133+
:non_existing -> raise Mix.Error, message: "Could not find application #{app}"
134134
file -> get_tuples(Path.dirname(Path.dirname(file)))
135135
end
136136
end

lib/mix/lib/mix/tasks/test.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ defmodule Mix.Tasks.Test do
8282
{ opts, files } = OptionParser.parse(args, switches: @switches)
8383

8484
unless System.get_env("MIX_ENV") || Mix.env == :test do
85-
raise Mix.Error, "mix test is running on environment #{Mix.env}. If you are " <>
86-
"running tests along another task, please set MIX_ENV explicitly"
85+
raise Mix.Error, message: "mix test is running on environment #{Mix.env}. If you are " <>
86+
"running tests along another task, please set MIX_ENV explicitly"
8787
end
8888

8989
Mix.Task.run "app.start", args

0 commit comments

Comments
 (0)