mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02:00
Add more details to error message
This commit is contained in:
parent
130c437dd3
commit
4422926b63
@ -174,7 +174,7 @@ async function applyPatchAndValidate(assetDetails, diffDetails) {
|
|||||||
i.toString(16).padStart(2, '0')
|
i.toString(16).padStart(2, '0')
|
||||||
).join('');
|
).join('');
|
||||||
if ( sha1Full.startsWith(checksum) === false ) {
|
if ( sha1Full.startsWith(checksum) === false ) {
|
||||||
assetDetails.error = 'badchecksum';
|
assetDetails.error = `badchecksum: expected ${checksum}, computed ${sha1Full.slice(0, checksum.length)}`;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
assetDetails.text = textAfter;
|
assetDetails.text = textAfter;
|
||||||
|
Loading…
Reference in New Issue
Block a user