Skip to content

Commit

Permalink
feat: added new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
WBRK-dev committed Apr 20, 2024
1 parent 47e1044 commit 44d6ff5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extractors/megacloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44d6ff5

Please sign in to comment.