diff --git a/src/lib/backup/backup.ts b/src/lib/backup/backup.ts index 524bb193..4ba98eee 100644 --- a/src/lib/backup/backup.ts +++ b/src/lib/backup/backup.ts @@ -67,8 +67,10 @@ export function restoreFromFile( switch (file.type) { case "backup": { const recent = file.history[0] - if (recent[1].device !== get(serialPort)?.device) + if (recent[1].device !== get(serialPort)?.device) { + alert("Backup is incompatible with this device") throw new Error("Backup is incompatible with this device") + } changes.update(changes => { changes.push(