movey_core/
error.rs

1use utils::error::Result;
2use std::fs::File;
3
4/// Return, randomly, true or false
5pub fn simulate_error() -> Result<()> {
6    // Trigger an error
7    File::open("thisfiledoesnotexist")?;
8
9    Ok(())
10}