rust/physfs-rs/src/physfs/util.rs
author alfadur
Thu, 25 Apr 2019 23:59:50 +0300
changeset 14838 bdb47255d7e4
parent 14435 a1613788130d
permissions -rw-r--r--
accept redirect messages

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())[..])
}