Wrapper for Stata's assert command, throws error messages