Skip to content

Commit

Permalink
Improve error message when deploying notebooks without settings (live…
Browse files Browse the repository at this point in the history
  • Loading branch information
ByeongUkChoi authored Jun 25, 2023
1 parent 05d691d commit ebab482
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/livebook/apps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ defmodule Livebook.Apps do
warnings = Enum.map(warnings, &("Import: " <> &1))
deploy(notebook, warnings: warnings)
else
Logger.warning("Skipping app deployment at #{path} due to invalid settings")
Logger.warning(
"Skipping app deployment at #{path}. The deployment settings are missing or invalid. Please configure them under the notebook deploy panel."
)
end
end

Expand Down
3 changes: 2 additions & 1 deletion test/livebook/apps_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ defmodule Livebook.AppsTest do

assert capture_log(fn ->
Livebook.Apps.deploy_apps_in_dir(tmp_dir)
end) =~ "Skipping app deployment at #{app_path} due to invalid settings"
end) =~
"Skipping app deployment at #{app_path}. The deployment settings are missing or invalid. Please configure them under the notebook deploy panel."
end

@tag :tmp_dir
Expand Down

0 comments on commit ebab482

Please sign in to comment.