dyon 0.40.0

A rusty dynamically typed scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::io;
use std::error::Error;

/// Returns a string representation of an IO error.
pub fn io_error(action: &str, file: &str, err: &io::Error) -> String {
    format!("IO Error when attempting to {} `{}`: {}\n{}", action, file, err.description(),
        match err.source() {
            None => "",
            Some(cause) => cause.description()
        })
}