Added set error condition