feat: added new error message
This commit is contained in:
@@ -103,6 +103,10 @@ class MegaCloud {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const vars = this.extractVariables(text, "MEGACLOUD");
|
const vars = this.extractVariables(text, "MEGACLOUD");
|
||||||
|
if (!vars.length) {
|
||||||
|
throw new Error("Can't find variables. Perhaps the extractor is outdated.");
|
||||||
|
}
|
||||||
|
|
||||||
const { secret, encryptedSource } = this.getSecret(
|
const { secret, encryptedSource } = this.getSecret(
|
||||||
encryptedString as string,
|
encryptedString as string,
|
||||||
vars
|
vars
|
||||||
|
|||||||
Reference in New Issue
Block a user