Skip to content

Commit

Permalink
Debugging (will revert)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcua committed Oct 29, 2024
1 parent 0072205 commit 2c76669
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bin/ayb_isolated_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ fn main() -> Result<(), serde_json::Error> {
.expect("query mode should be 0 or 1");
let query = (args[3..]).to_vec();
let result = query_sqlite(&PathBuf::from(db_file), &query.join(" "), false, query_mode);
let query_mode2 = QueryMode::try_from(
args[2]
.parse::<i16>()
.expect("query mode should be an integer"),
)
.expect("query mode should be 0 or 1");
match result {
Ok(result) => println!("{}", serde_json::to_string(&result)?),
Err(error) => eprintln!("{}", serde_json::to_string(&error)?),
Err(error) => eprintln!("{}---{}---{:?}---{:?}", serde_json::to_string(&error)?, db_file, query_mode2, query),
}
Ok(())
}

0 comments on commit 2c76669

Please sign in to comment.