Skip to content

Commit

Permalink
Make read_from_rom_table return a result
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink authored and Yatekii committed Nov 11, 2019
1 parent 60e727e commit 9151fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-flash/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn main_try() -> Result<(), failure::Error> {
let strategy = if let Some(name) = opt.chip {
SelectionStrategy::Name(name)
} else {
SelectionStrategy::ChipInfo(ChipInfo::read_from_rom_table(&mut probe).unwrap())
SelectionStrategy::ChipInfo(ChipInfo::read_from_rom_table(&mut probe)?)
};
let target = if let Some(target) = target_override {
target
Expand Down

0 comments on commit 9151fe7

Please sign in to comment.