mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 05:25:57 +08:00
Improve error message in the Fly runtime config when the app name is taken
This commit is contained in:
parent
f054f34603
commit
0df5415020
1 changed files with 12 additions and 0 deletions
|
@ -307,6 +307,18 @@ defmodule LivebookWeb.SessionLive.FlyRuntimeComponent do
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp app_check_error(%{error: %{status: 403}} = assigns) do
|
||||||
|
~H"""
|
||||||
|
<.message_box
|
||||||
|
kind={:error}
|
||||||
|
message={
|
||||||
|
"This app name is already taken, pick a different name." <>
|
||||||
|
" If this is an app you own, enter a token for the corresponding organization."
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
|
||||||
defp app_check_error(assigns) do
|
defp app_check_error(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.message_box kind={:error} message={"Error: " <> @error.message} />
|
<.message_box kind={:error} message={"Error: " <> @error.message} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue