Skip to content

Commit

Permalink
Tweak migration error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 21, 2023
1 parent e7ec98f commit 3581215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utilities/migration.js
Expand Up @@ -131,15 +131,15 @@ export async function runPreMigrationChecks(currentInstall, externalUmbrelInstal

// Check we have an Umbrel install on an external SSD
if (!externalUmbrelInstall) {
throw new Error('No external Umbrel install found')
throw new Error('No drive found with an umbrelOS install')
}

// Check versions match
const { version: previousVersion } = await fse.readJson(`${externalUmbrelInstall}/info.json`)
const { version: currentVersion } = await fse.readJson(`${currentInstall}/info.json`)
// TODO: We might want to loosen this check to a wider range in future updates.
if (previousVersion !== currentVersion) {
throw new Error(`Umbrel versions do not match. Cannot migrate Umbrel ${previousVersion} data in to an Umbrel ${currentVersion} install`)
throw new Error(`umbrelOS versions do not match. Cannot migrate umbrelOS ${previousVersion} data in to an umbrelOS ${currentVersion} install`)
}

// Check enough storage is available
Expand Down

0 comments on commit 3581215

Please sign in to comment.