Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Jun 14, 2024
1 parent a725757 commit d4e9f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/device-protection.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = class DeviceProtectionCommands extends CLICommandBase {
s = await this.device.getProtectionState();
} catch (error) {
if (error.message === 'Not implemented') {
throw new Error('Device protection status is not supported on this device${os.EOL}${os.EOL}');
throw new Error(`Device protection status is not supported on this device${os.EOL}${os.EOL}`);
}
throw new Error('Failed to get device protection status');
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/device-os-version-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ async function downloadDeviceOsVersionBinaries({ api, platformId, version='lates
const deviceOsVersion = await api.getDeviceOsVersions(platformId, version);
// omit user part application
deviceOsVersion.modules = deviceOsVersion.modules.filter(m => m.prefixInfo.moduleFunction !== 'user_part');
// ensure the version is the semver version
version = deviceOsVersion.version;

// find the modules that don't already exist on this machine
const modulesToDownload = [];
Expand Down

0 comments on commit d4e9f57

Please sign in to comment.