feat: more work on UI cleanup

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-24 17:19:49 +02:00
parent eb609e1934
commit e51566d707
7 changed files with 141 additions and 21 deletions

View File

@@ -249,6 +249,13 @@ defmodule BDS.Desktop.ShellCommands do
nil -> {:error, %{message: "No active project selected"}}
project -> {:ok, project}
end
rescue
error in [Exqlite.Error] ->
if String.contains?(Exception.message(error), "no such table: projects") do
{:error, %{message: "Project database is not initialized"}}
else
reraise error, __STACKTRACE__
end
end
defp preview_url(server) do