Skip to content

Commit c7b91c5

Browse files
committed
Fix invalid String.to_atom calls
1 parent 62baed2 commit c7b91c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mix/lib/mix/tasks/deps.compile.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ defmodule Mix.Tasks.Deps.Compile do
125125

126126
defp handle_rebar_not_found(app) do
127127
shell = Mix.shell
128-
shell.info "Could not find \"rebar\", which is needed to build dependency #{inspect String.to_atom(app)}"
128+
shell.info "Could not find \"rebar\", which is needed to build dependency #{inspect app}"
129129
shell.info "I can install a local copy which is just used by Mix"
130130

131131
unless shell.yes?("Shall I install rebar?") do
132132
Mix.raise "Could not find \"rebar\" to compile " <>
133-
"dependency #{inspect String.to_atom(app)}, please ensure \"rebar\" is available"
133+
"dependency #{inspect app}, please ensure \"rebar\" is available"
134134
end
135135

136136
(Mix.Tasks.Local.Rebar.run([]) && Mix.Rebar.local_rebar_cmd) ||
@@ -158,7 +158,7 @@ defmodule Mix.Tasks.Deps.Compile do
158158
Mix.Dep.in_dependency dep, fn _ ->
159159
env = [{"ERL_LIBS", Path.join(config[:build_path], "lib")}]
160160
if Mix.shell.cmd("#{command} #{extra}", print_app: print_app?, env: env) != 0 do
161-
Mix.raise "Could not compile dependency #{inspect String.to_atom(app)}, \"#{command}\" command failed. " <>
161+
Mix.raise "Could not compile dependency #{inspect app}, \"#{command}\" command failed. " <>
162162
"If you want to recompile this dependency, please run: \"mix deps.compile #{app}\""
163163
end
164164
end

0 commit comments

Comments
 (0)