Skip to content

Commit c552877

Browse files
authored
align phx.gen.auth umbrella error message with other generators (#6446)
1 parent 19d9c0b commit c552877

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mix/tasks/phx.gen.auth.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ defmodule Mix.Tasks.Phx.Gen.Auth do
173173
@doc false
174174
def run(args, test_opts \\ []) do
175175
if Mix.Project.umbrella?() do
176-
Mix.raise("mix phx.gen.auth can only be run inside an application directory")
176+
Mix.raise(
177+
"mix phx.gen.auth must be invoked from within your *_web application root directory"
178+
)
177179
end
178180

179181
Mix.Phoenix.ensure_live_view_compat!(__MODULE__)

0 commit comments

Comments
 (0)