Add try catch to behaviors
This commit is contained in:
parent
5fdee602f1
commit
5fdbd771ff
3 changed files with 24 additions and 20 deletions
|
@ -47,8 +47,7 @@ function FlexGroup(flexibleGroup: IFlexibleGroup): void {
|
|||
// title: 'Cannot fit!',
|
||||
// text: 'Cannot fit at all even when squeezing all flex containers to the minimum.'
|
||||
// });
|
||||
console.error('[FlexBehavior] Cannot fit at all even when squeezing all flex containers to the minimum.');
|
||||
return;
|
||||
throw new Error('[FlexBehavior] Cannot fit at all even when squeezing all flex containers to the minimum.');
|
||||
}
|
||||
|
||||
const maxMinWidths = Math.max(...minWidths);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue