Skip to content

Commit bfee05e

Browse files
author
Ives van Hoorne
committed
Add more descriptive message for infinite loop error
1 parent 1afc854 commit bfee05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/eval/transpilers/babel/plugins/babel-plugin-transform-prevent-infinite-loops.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = ({ types: t, template }) => {
1818
global.infiniteLoopError = new RangeError(
1919
'Potential infinite loop: exceeded ' +
2020
MAX_ITERATIONS +
21-
' iterations.'
21+
' iterations. You can disable this check by creating a sandbox.config.json file.'
2222
);
2323
throw global.infiniteLoopError;
2424
}

0 commit comments

Comments
 (0)