Skip to content

Commit 90d12c4

Browse files
Update lib/livebook_web/live/file_select_component.ex
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
1 parent 671f4df commit 90d12c4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/livebook_web/live/file_select_component.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,12 @@ defmodule LivebookWeb.FileSelectComponent do
706706
end
707707

708708
def handle_async(:list_files, {:exit, _reason}, socket) do
709-
{:noreply, assign(socket, loading: false)}
709+
socket =
710+
socket
711+
|> put_error("Listing files failed")
712+
|> assign(loading: false)
713+
714+
{:noreply, socket}
710715
end
711716

712717
defp annotate_matching(file_infos, prefix) do

0 commit comments

Comments
 (0)