chore(cli): more meaningful info about error during dsn parse

This commit is contained in:
hakki 2025-01-08 17:27:59 +01:00
parent b6bf35033b
commit 51389c8e2a
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ fn main() -> Result<(), std::io::Error> {
let design_file = File::open(&args.input)?; let design_file = File::open(&args.input)?;
let mut design_bufread = BufReader::new(design_file); let mut design_bufread = BufReader::new(design_file);
let design = SpecctraDesign::load(design_bufread).unwrap(); let design =
SpecctraDesign::load(design_bufread).expect("File failed to parse as Specctra DSN");
let board = design.make_board(&mut LayoutEdit::new()); let board = design.make_board(&mut LayoutEdit::new());
let history = if let Some(commands_filename) = args.commands { let history = if let Some(commands_filename) = args.commands {