this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

🥅 Improve error message for some unwraps

+3 -2
+2 -1
src/midi.rs
··· 151 151 pb.set_position(0); 152 152 } 153 153 154 - let raw = std::fs::read(source).unwrap(); 154 + let raw = std::fs::read(source) 155 + .expect(format!("Failed to read MIDI file {}", source.to_str().unwrap()).as_str()); 155 156 let midifile = midly::Smf::parse(&raw).unwrap(); 156 157 157 158 let mut timeline = Timeline::new();
+1 -1
src/video.rs
··· 512 512 .values() 513 513 .map(|stem| stem.duration_ms) 514 514 .max() 515 - .unwrap() 515 + .expect("No audio sync data provided. Use .sync_audio_with() to load a MIDI file, or provide a duration override.") 516 516 } 517 517 518 518 pub fn preview_on(&self, port: usize) -> Result<()> {