This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push: new 4ee682c Better error reporting for Vertical/HorizontalLayout new a8072a7 Merge pull request #1028 from stanislaw89/better-gap-error-reporting 4ee682c is described below commit 4ee682c75e14e3e4f763d6f0cd595878b4f26e72 Author: sten <stanisla...@gmail.com> AuthorDate: Sat Jan 2 20:09:15 2021 -0500 Better error reporting for Vertical/HorizontalLayout --- .../royale/org/apache/royale/jewel/beads/layouts/HorizontalLayout.as | 2 +- .../main/royale/org/apache/royale/jewel/beads/layouts/VerticalLayout.as | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/HorizontalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/HorizontalLayout.as index 8ebdb22..15c515e 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/HorizontalLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/HorizontalLayout.as @@ -206,7 +206,7 @@ package org.apache.royale.jewel.beads.layouts if(value != 0) hostComponent.addClass("gap-" + value + "x" + GapConstants.GAP_STEP + "px"); } else - throw new Error("Gap needs to be between 0 and " + GapConstants.GAPS); + throw new Error("Gap needs to be between 0 and " + GapConstants.GAPS + ", got " + value); } private var variableRowHeightInitialized:Boolean; diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/VerticalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/VerticalLayout.as index ffcdb2b..b907b81 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/VerticalLayout.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/VerticalLayout.as @@ -206,7 +206,7 @@ package org.apache.royale.jewel.beads.layouts if(value != 0) hostComponent.addClass("gap-" + value + "x" + GapConstants.GAP_STEP + "px"); } else - throw new Error("Gap needs to be between 0 and " + GapConstants.GAPS); + throw new Error("Gap needs to be between 0 and " + GapConstants.GAPS + ", got " + value); } private var variableRowHeightInitialized:Boolean;