diff --git a/src/change_processor.rs b/src/change_processor.rs index a6ebdb03..449fe911 100644 --- a/src/change_processor.rs +++ b/src/change_processor.rs @@ -9,7 +9,6 @@ use memofs::{IoResultExt, Vfs, VfsEvent}; use rbx_dom_weak::{RbxId, RbxValue}; use crate::{ - error::ErrorDisplay, message_queue::MessageQueue, snapshot::{ apply_patch_set, compute_patch_set, AppliedPatchSet, InstigatingSource, PatchSet, RojoTree, @@ -313,7 +312,7 @@ fn compute_and_apply_changes(tree: &mut RojoTree, vfs: &Vfs, id: RbxId) -> Optio apply_patch_set(tree, patch_set) } Err(err) => { - log::error!("Error processing filesystem change: {}", ErrorDisplay(err)); + log::error!("Error processing filesystem change: {:?}", err); return None; } }, diff --git a/src/error.rs b/src/error.rs deleted file mode 100644 index 5c5a953e..00000000 --- a/src/error.rs +++ /dev/null @@ -1,18 +0,0 @@ -use std::{error::Error, fmt}; - -/// Wrapper type to print errors with source-chasing. -pub struct ErrorDisplay(pub E); - -impl fmt::Display for ErrorDisplay { - fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - writeln!(formatter, "{}", self.0)?; - - let mut current_err: &dyn Error = &self.0; - while let Some(source) = current_err.source() { - writeln!(formatter, " caused by {}", source)?; - current_err = &*source; - } - - Ok(()) - } -} diff --git a/src/lib.rs b/src/lib.rs index 7e594414..361c92e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,6 @@ mod tree_view; mod auth_cookie; mod change_processor; -mod error; mod glob; mod lua_ast; mod message_queue;