From e8476bee6d7c1f131df5847cb5d89274694cd6af 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 1e6bcc3b6ab..b537bf62129 100644 --- a/apps/files/src/actions/openLocallyAction.ts +++ b/apps/files/src/actions/openLocallyAction.ts @@ -113,7 +113,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 }