diff --git a/01.workspace/heave/src/fun/sqlite_map_row_to_attribute.rs b/01.workspace/heave/src/fun/sqlite_map_row_to_attribute.rs index 425bf75..a773774 100644 --- a/01.workspace/heave/src/fun/sqlite_map_row_to_attribute.rs +++ b/01.workspace/heave/src/fun/sqlite_map_row_to_attribute.rs @@ -14,7 +14,9 @@ pub fn run(row: &rusqlite::Row) -> rusqlite::Result { (None, None, Some(value), None, None) => Value::Real(value), (None, None, None, Some(value), None) => Value::Text(value), (None, None, None, None, Some(value)) => Value::Bool(value), - _ => panic!(), + _ => { + return Err(rusqlite::types::FromSqlError::InvalidType.into()); + } }; Ok(Attribute { id, value }) }