From 0f2761aeaed82ac70793cebfeb169500e3a55e48 Mon Sep 17 00:00:00 2001 From: lnxcz Date: Tue, 17 May 2022 16:19:16 +0200 Subject: [PATCH] minor changes --- src/components/FileEditor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/FileEditor.tsx b/src/components/FileEditor.tsx index 7ecf023..b015c4c 100644 --- a/src/components/FileEditor.tsx +++ b/src/components/FileEditor.tsx @@ -15,6 +15,7 @@ export const FileEditor: FC<{ path: string }> = ({ path }) => { const file = await invoke("open_file", { path }); setContent(file.content || ""); } catch (err) { + alert("An error happened opening " + path); } setLoading(false);