Check return code of cdh-get-index