fixed error messages in primop