--- DarthVader/src/R2-D2.cpp 2006/09/07 08:50:39 1.5 +++ DarthVader/src/R2-D2.cpp 2006/09/08 08:12:28 1.7 @@ -71,7 +71,7 @@ if ( strcmp(pamdbuser,"") ) user = pamdbuser; if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw; // - printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data()); + // printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data()); // TString tzone = "MSK"; TString tzone2 = "MSK"; @@ -268,13 +268,13 @@ error = glrun->Query_GL_RUN(run,dbc); glroot->Clear(); error = glroot->Query_GL_ROOT(glrun->ID_ROOT_L0,dbc); - if ( error ){ - printf(" Error querying the DB! \n"); - exit(-4); - }; - if ( !glrun->ID ){ + if ( !glrun->ID_ROOT_L0 ){ printf("\n No run with ID=%u in the DB!\n",run); } else { + if ( error ){ + printf(" Error querying the DB! \n"); + exit(-4); + }; printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data()); }; };