You could also verify if the file exists before this `if`:

```rust
if !filename.exists() {
    return `Err(format!("No such file {}", filename.display()))` 
}
```