fix: update module declarations and imports
Co-authored-by: aider (openai/andrew/openrouter/google/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -2,6 +2,7 @@ use anyhow::{anyhow, Result};
|
||||
use std::path::PathBuf;
|
||||
|
||||
use crate::config;
|
||||
use crate::core::error::CoreError;
|
||||
use crate::core::item_service::ItemService;
|
||||
use clap::error::ErrorKind;
|
||||
use clap::Command;
|
||||
@@ -37,7 +38,7 @@ pub fn mode_delete(
|
||||
match item_service.delete_item(conn, *item_id) {
|
||||
Ok(_) => {}
|
||||
Err(e) => match e {
|
||||
crate::core::error::CoreError::ItemNotFound(_) => {
|
||||
CoreError::ItemNotFound(_) => {
|
||||
warn!("Unable to find item {item_id} in database");
|
||||
}
|
||||
_ => return Err(anyhow!(e).context(format!("Failed to delete item {}", item_id))),
|
||||
|
||||
Reference in New Issue
Block a user