Improved error message

This commit is contained in:
Vidar Hokstad 2024-01-25 05:59:17 +00:00
parent f158b99f93
commit ea5df946e5
2 changed files with 2 additions and 1 deletions

View file

@ -37,7 +37,7 @@ def split_geom(geom, dir, node, gap, ratio)
geom.y += th + gap
end
return geom
else raise "Invalid direction"
else raise "Invalid direction #{dir.inspect}"
end
end

View file

@ -21,6 +21,7 @@ class Leaf
acc
end
def keep(k)
if !k.member?(window)
return nil if !@iclass