diff --git a/src/main.rs b/src/main.rs index 4451f2e..a04939d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,9 +142,13 @@ impl MPS { fn list(&mut self) -> io:: Result<()> { self.login()?; - let st = self.storage.as_ref().unwrap(); - for id in st.ids() { - println!("{}", id); + let ids = self.storage.as_ref().unwrap().ids(); + if ids.len() == 0 { + println!("No items"); + } else { + for id in ids { + println!("{}", id); + } } Ok(()) }