Raise error for mapping if no block is given