Skip to content

Commit

Permalink
fix: throw error when can't find loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Oct 24, 2022
1 parent 61bb623 commit fb753f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "automa",
"version": "1.22.0",
"version": "1.21.6",
"description": "An extension for automating your browser by connecting blocks",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ async function loopBreakpoint(block, { prevBlockData }) {
currentLoop.type === 'numbers'
? true
: currentLoop.index < currentLoop.data.length - 1;
} else {
throw new Error(`Can't find a loop with "${block.data.loopId}" loop id`);
}

const notReachMaxLoop =
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ASSET_PATH = process.env.ASSET_PATH || '/';
const alias = {
'@': path.resolve(__dirname, 'src/'),
secrets: path.join(__dirname, 'secrets.blank.js'),
'@business': path.resolve(__dirname, 'business/prod'),
'@business': path.resolve(__dirname, 'business/dev'),
};

// load the secrets
Expand Down

0 comments on commit fb753f4

Please sign in to comment.