feat: added new error message

This commit is contained in:
WBRK-dev
2024-04-20 08:54:44 +02:00
parent 47e104438a
commit 44d6ff5a11
+4
View File
@@ -103,6 +103,10 @@ class 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(
encryptedString as string,
vars