movey-core 0.0.2

The application core code
Documentation
1
2
3
4
5
6
7
8
9
10
use utils::error::Result;
use std::fs::File;

/// Return, randomly, true or false
pub fn simulate_error() -> Result<()> {
    // Trigger an error
    File::open("thisfiledoesnotexist")?;

    Ok(())
}