diff --git a/src/main.rs b/src/main.rs index b57329d..91839d2 100755 --- a/src/main.rs +++ b/src/main.rs @@ -173,13 +173,13 @@ impl ReadsReader { let reader = BamReader::from_path(path, n); match reader { Ok(reader) => ReadsReader::BamReader(reader), - Err(e) => panic!("{}", e), + Err(e) => panic!("{}, File: {}", e, path), } } else if path.ends_with(".sam") { let reader = SamReader::from_path(path); match reader { Ok(reader) => ReadsReader::SamReader(reader), - Err(e) => panic!("{}", e), + Err(e) => panic!("{}, File: {}", e, path), } } else { panic!("File type not supported"); @@ -296,11 +296,11 @@ struct Args { i: Vec, // Name and type of the bam file - #[structopt(name = "bam", default_value = "test.bam")] + #[structopt(name = "bam")] bam: String, // Name and type of the gtf file - #[structopt(name = "gtf", default_value = "test.gtf")] + #[structopt(name = "gtf")] gtf: String, // Secondary alignment mode