REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 6-Feb-2009 Edit History  

REBOL 3 Errors: expect-arg

A function was provided an argument of a datatype it wasn't expecting.


[:arg1 "expected" :arg2 "argument of type:" :arg3]


f: func [b [block!]][probe b]
filter-error try [f "string"]
** Script Error: f expected b argument of type: block
** Where: f "string"

  TOC < Back Next > - WIP Wiki Feedback Admin