rust/physfs-rs/src/physfs/util.rs
author sheepluva
Sat, 07 Dec 2019 23:58:37 +0100
branchhedgeroid
changeset 15518 f0bf14ead75c
parent 14440 a1613788130d
permissions -rw-r--r--
hedgeroid: adjust build.xml: fix app name; set java version; print hint if sdk build.xml is missing

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