Mount error & visual enhancements

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-12-15 00:04:34 +07:00
parent 576fc11f2a
commit e21883a8d0
2 changed files with 17 additions and 6 deletions
+13 -6
View File
@@ -485,7 +485,9 @@ async function startupMounts() {
'[startupMounts] remote config mount point is not empty',
remoteConfig.mountOnStart.mountPoint
)
continue
throw new Error(
`Mount point for ${remote} is not empty, make sure ${remoteConfig.mountOnStart.mountPoint} is empty`
)
}
const {
@@ -525,11 +527,16 @@ async function startupMounts() {
} catch (error) {
console.error('Error mounting remote:', error)
Sentry.captureException(error)
await message(`Failed to mount ${remote} on startup.`, {
title: 'Automount Error',
kind: 'error',
okLabel: 'Got it',
})
await message(
error instanceof Error
? error.message
: `Failed to mount ${remote} on startup.`,
{
title: 'Automount Error',
kind: 'error',
okLabel: 'Got it',
}
)
}
}
}