Explorar el Código

n starts + qual

Thomas hace 2 años
padre
commit
98e2097636
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -136,7 +136,7 @@ pub fn range_depths(
         let rstart = pileup.pos() as i32;
         if rstart >= start && rstart < stop {
             // depths.push(pileup.depth());
-            let v = depths.get_mut((rstart - start) as usize).unwrap();
+            let v = depths.get_mut((rstart - start) as usize).context(format!("Errrr {}", rstart - start))?;
             *v = pileup.depth();
         } else if rstart >= stop {
             break;