Skip to content

Commit e868dc7

Browse files
committed
f
1 parent 9b9fe70 commit e868dc7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

libchisel/src/remapimports.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<'a> ModuleConfig for RemapImports<'a> {
4141
if let Some(preset) = config.get("preset") {
4242
RemapImports::with_preset(preset)
4343
} else {
44-
Err(ModuleError::NotSupported)
44+
Err(ModuleError::MissingConfigKey("preset".to_string()))
4545
}
4646
}
4747
}
@@ -73,7 +73,12 @@ impl<'a> ModulePreset for RemapImports<'a> {
7373
ImportList::with_preset("bignum")?,
7474
Some("bignum_"),
7575
)),
76-
_ => return Err(ModuleError::NotSupported),
76+
_ => {
77+
return Err(ModuleError::InvalidConfigValue(
78+
"preset".to_string(),
79+
preset_individual.to_string(),
80+
))
81+
}
7782
}
7883
}
7984

0 commit comments

Comments
 (0)