Display more detailed "invalid hardware configuration" errors.
This commit is contained in:
@@ -53,7 +53,7 @@ export class HardwareConfiguration {
|
||||
this.isIso = buffer.readBoolean();
|
||||
return this;
|
||||
} catch (e) {
|
||||
throw new Error('Invalid hardware configuration');
|
||||
throw new Error('Invalid hardware configuration (Index out of bounds)');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export const getHardwareConfigFromDeviceResponse = (json: string): HardwareConfi
|
||||
}
|
||||
|
||||
if (hardwareConfig.signature !== 'UHK') {
|
||||
throw Error('Invalid hardware configuration');
|
||||
throw Error('Invalid hardware configuration (Invalid signature)');
|
||||
}
|
||||
|
||||
return hardwareConfig;
|
||||
|
||||
Reference in New Issue
Block a user