mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-12-07 19:32:06 +00:00
assert message clarification
This commit is contained in:
parent
fa2401c941
commit
a4e31037db
1 changed files with 2 additions and 1 deletions
|
|
@ -1152,7 +1152,8 @@ module rabbit_clip(type, length, width, snap, thickness, depth, compression=0.1
|
|||
assert(is_num(depth) && depth>0, "Depth must be a positive value")
|
||||
assert(is_num(compression) && compression >= 0, "Compression must be a nonnegative value")
|
||||
assert(is_num(lock_clearance))
|
||||
assert(valid_lock(), "Invalid lock value")
|
||||
assert(valid_lock(), type != "double" ? str("lock must be either true, false, LEFT, or RIGHT for type \"", type, "\"")
|
||||
: "for type \"double\", lock must be either true, false, TOP, BOTTOM, LEFT, RIGHT, a corner (e.g. TOP+LEFT), or a vector of edges and/or corners")
|
||||
assert(in_list(type,legal_types),str("type must be one of ",legal_types));
|
||||
|
||||
module apply_lock() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue