Display more detailed "invalid hardware configuration" errors.

This commit is contained in:
László Monda
2018-05-21 11:03:05 +02:00
parent 609aba856a
commit daa0e723b1
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');
throw new Error('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');
throw Error('Invalid hardware configuration (Invalid signature)');
}
return hardwareConfig;