From b2463b9629412ac08f515acf8ae591f9b29900ca Mon Sep 17 00:00:00 2001 From: dsyzov Date: Wed, 15 Apr 2026 12:33:22 +0000 Subject: [PATCH] fix: remove error message when closing the "Open locally" dialog catch the exception thrown by the "open locally" dialog when closed within the action itself, so that it does not produce an error message when caught by higher level logic Signed-off-by: dsyzov --- apps/files/src/actions/openLocallyAction.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/files/src/actions/openLocallyAction.ts b/apps/files/src/actions/openLocallyAction.ts index 1d81da16d0e..071fddcc5e0 100644 --- a/apps/files/src/actions/openLocallyAction.ts +++ b/apps/files/src/actions/openLocallyAction.ts @@ -109,7 +109,12 @@ async function confirmLocalEditDialog(): Promise<'online'|'local'|false> { }, ]) .build() - - await dialog.show() + + try { + await dialog.show() + } catch (error) { + logger.debug('"Open locally" dialog closed') + } + return result }