chickadee » check-errors » make-error-type-message

make-error-type-message TYPNAM #!optional ARGNAMprocedure

Returns a type error message from the TYPNAM} and optional {{ARGNAM.

Uses make-bad-argument-message and make-type-name-message to build the message components.

Example:

(make-error-type-message 'integer "count")
;=> "bad `count' argument type - not an integer"