Updated to compile with latest error crate.