RND: use more appropriate error macro