praveen|return error on failure