diff --git a/src/world/exit.rs b/src/world/exit.rs index 6f759f5..9900965 100644 --- a/src/world/exit.rs +++ b/src/world/exit.rs @@ -22,8 +22,14 @@ impl<'a> TryFrom<&Row<'a>> for Exit { fn try_from(row: &Row) -> Result { Ok(Self { - target: row.get("target")?, - direction: Direction::try_from_long(row.get::<&str, String>("direction")?)?, + target: try_log!(row.get("target"), "Unable to get column 'target' from row"), + direction: try_log!( + Direction::try_from_long(try_log!( + row.get::<&str, String>("direction"), + "Unable to get column 'direction' from row" + )), + "Unable to parse direction" + ) }) } }