]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/toolkit/bamtools_convert.cpp
convert: cleanup of prior fix, report if no index file found
[bamtools.git] / src / toolkit / bamtools_convert.cpp
index 1a01cffdafcb3e198bab8cb017340e543cd17be0..1d8bad4257247fd94a5e482c531171d2fac500d6 100644 (file)
@@ -167,8 +167,12 @@ bool ConvertTool::ConvertToolPrivate::Run(void) {
         }
     } else {
         if ( !reader.Open(m_settings->InputFiles, true) ) {
-            cerr << "Could not open input files" << endl;
-            return false;
+            if ( !reader.Open(m_settings->InputFiles, false) ) {
+                cerr << "Could not open input files" << endl;
+                return false;
+            } else {
+                cerr << "Opened reader without index file, jumping is disabled." << endl;
+            }
         }
     }
     m_references = reader.GetReferenceData();