From b8d912881df26e0fbc5b41f5e01708267bafd3c3 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 19 Mar 2023 21:18:40 +0100 Subject: [PATCH] Fix SQL-Interface --- schemsearch-cli/src/main.rs | 4 +--- schemsearch-cli/src/types.rs | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/schemsearch-cli/src/main.rs b/schemsearch-cli/src/main.rs index db89abf..2faa752 100644 --- a/schemsearch-cli/src/main.rs +++ b/schemsearch-cli/src/main.rs @@ -271,9 +271,7 @@ fn main() { } } Err(e) => { - if !output_std && !output_std_csv { - println!("Error while loading schematic ({}): {}", schem.get_name(), e.to_string()); - } + println!("Error while loading schematic ({}): {}", schem.get_name(), e.to_string()); SearchResult { name: schem.get_name(), matches: vec![] diff --git a/schemsearch-cli/src/types.rs b/schemsearch-cli/src/types.rs index ee0451f..c2127c7 100644 --- a/schemsearch-cli/src/types.rs +++ b/schemsearch-cli/src/types.rs @@ -18,6 +18,7 @@ use std::path::PathBuf; #[cfg(feature = "sql")] use futures::executor::block_on; +use schemsearch_files::Schematic; #[cfg(feature = "sql")] use schemsearch_sql::{load_schemdata, SchematicNode};