Add try catch to behaviors
This commit is contained in:
parent
5fdee602f1
commit
5fdbd771ff
3 changed files with 24 additions and 20 deletions
|
@ -183,7 +183,7 @@ function ApplyMainLoop(oldMatrix: number[][], rowlength: number): number[][] {
|
|||
}
|
||||
|
||||
if (tries === 0) {
|
||||
throw new Error('[Flex]Simplexe: Could not find a solution');
|
||||
throw new Error('[Flex] Simplexe: Could not find a solution');
|
||||
}
|
||||
|
||||
return matrix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue