diff options
| -rw-r--r-- | xmake/core/ui/border.lua | 2 | ||||
| -rw-r--r-- | xmake/core/ui/window.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/ui/border.lua b/xmake/core/ui/border.lua index 503a77a77..ae2228540 100644 --- a/xmake/core/ui/border.lua +++ b/xmake/core/ui/border.lua @@ -39,7 +39,7 @@ function border:init(name, bounds) view.init(self, name, bounds) -- check bounds - assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", self)) + assert(self:width() > 2 and self:height() > 2, string.format("%s: too small!", tostring(self))) end -- draw border diff --git a/xmake/core/ui/window.lua b/xmake/core/ui/window.lua index 4f07c09d8..1685b9884 100644 --- a/xmake/core/ui/window.lua +++ b/xmake/core/ui/window.lua @@ -43,7 +43,7 @@ function window:init(name, bounds, title, shadow) panel.init(self, name, bounds) -- check bounds - assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", self)) + assert(self:width() > 4 and self:height() > 3, string.format("%s: too small!", tostring(self))) -- insert shadow if shadow then |
