handle empty command initialization

This commit is contained in:
FTCHD
2026-02-22 20:34:33 +03:00
parent ed1e159842
commit 6e669159e8
+6 -2
View File
@@ -433,9 +433,13 @@ async function startRclone() {
return await exit(0)
}
const rcloneCommandFn = rclone?.system || rclone?.internal
const command = rclone?.system || rclone?.internal
const command = rcloneCommandFn!
if (!command) {
console.error('[startRclone] initRclone returned without a runnable command')
Sentry.captureException(new Error('initRclone returned without a runnable command.'))
return
}
command.addListener('close', async (event) => {
console.log('close', event)