Instruct the user to power cycle the keyboard when encountered with an invalid hardware configuration.

This commit is contained in:
László Monda
2018-05-27 02:43:12 +02:00
parent ffa52757c9
commit 9471b31a5d
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ export class HardwareConfiguration {
this.isIso = buffer.readBoolean();
return this;
} catch (e) {
throw new Error('Invalid hardware configuration (Index out of bounds)');
throw new Error('Please power cycle your keyboard (Invalid hardware configuration: Index out of bounds)');
}
}

View File

@@ -10,7 +10,7 @@ export const getHardwareConfigFromDeviceResponse = (json: string): HardwareConfi
}
if (hardwareConfig.signature !== 'UHK') {
throw Error('Invalid hardware configuration (Invalid signature)');
throw Error('Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)');
}
return hardwareConfig;