--- DarthVader/src/R2-D2.cpp 2006/09/07 09:47:08 1.6 +++ DarthVader/src/R2-D2.cpp 2006/09/08 08:12:28 1.7 @@ -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()); }; };