🐛 Fix verification error for retailclient_publictest_0to200
This commit is contained in:
parent
161601d3d7
commit
b027d86c5f
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro
|
||||||
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) {
|
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) {
|
||||||
throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
|
throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
|
||||||
}
|
}
|
||||||
if (!(['0', '1', '2']).includes(file['reliable-id'])) {
|
if (!(['0', '1', '2', '3']).includes(file['reliable-id'])) {
|
||||||
throw new Error(`Expected reliable-id to be "0", "1" or "2" but it was "${file['reliable-id']}".`);
|
throw new Error(`Expected reliable-id to be an integer in range 0-3 but it was "${file['reliable-id']}".`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.info === undefined) {
|
if (file.info === undefined) {
|
||||||
|
|
Loading…
Reference in a new issue