pub fn error<S>(err: S) -> Errorwhere S: ToString,
Generates an io::Error from the given string.
io::Error