mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Add more details to error message
This commit is contained in:
parent
130c437dd3
commit
4422926b63
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ async function applyPatchAndValidate(assetDetails, diffDetails) {
|
|||
i.toString(16).padStart(2, '0')
|
||||
).join('');
|
||||
if ( sha1Full.startsWith(checksum) === false ) {
|
||||
assetDetails.error = 'badchecksum';
|
||||
assetDetails.error = `badchecksum: expected ${checksum}, computed ${sha1Full.slice(0, checksum.length)}`;
|
||||
return false;
|
||||
}
|
||||
assetDetails.text = textAfter;
|
||||
|
|
Loading…
Reference in a new issue