Skip to content

Commit

Permalink
binaryne
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jan 18, 2020
1 parent 00f8cbc commit 9b9fe70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libchisel/src/binaryenopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl ModuleConfig for BinaryenOptimiser {
if let Some(preset) = config.get("preset") {
BinaryenOptimiser::with_preset(preset)
} else {
Err(ModuleError::NotSupported)
Err(ModuleError::MissingConfigKey("preset"))
}
}
}
Expand All @@ -55,7 +55,7 @@ impl ModulePreset for BinaryenOptimiser {
"O4" => Ok(BinaryenOptimiser::O4),
"Os" => Ok(BinaryenOptimiser::Os),
"Oz" => Ok(BinaryenOptimiser::Oz),
_ => Err(ModuleError::NotSupported),
_ => Err(ModuleError::InvalidConfigValue("preset", preset)),
}
}
}
Expand Down

0 comments on commit 9b9fe70

Please sign in to comment.