rust/physfs-rs/src/physfs/util.rs
author nemo
Sat, 22 Jun 2019 10:32:15 -0400
changeset 15213 a5fb73335a87
parent 14456 a1613788130d
permissions -rw-r--r--
Someone didn't understand why they couldn't rejoin a game. Maybe this will help

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