rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 14 Jan 2019 19:26:24 +0100
changeset 14587 164ec37e9e4b
parent 14435 a1613788130d
permissions -rw-r--r--
Rename the special "none" key in frontend

use std::io::{ Error, ErrorKind };
use super::PhysFSContext;

pub fn physfs_error_as_io_error() -> Error {
    Error::new(ErrorKind::Other,
               &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
}