We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b22335 commit 9dcbb5eCopy full SHA for 9dcbb5e
libchisel/src/remapimports.rs
@@ -41,7 +41,7 @@ impl<'a> ModuleConfig for RemapImports<'a> {
41
if let Some(preset) = config.get("preset") {
42
RemapImports::with_preset(preset)
43
} else {
44
- Err(ModuleError::NotSupported)
+ Err(ModuleError::MissingConfigKey("preset".to_string()))
45
}
46
47
@@ -73,7 +73,7 @@ impl<'a> ModulePreset for RemapImports<'a> {
73
ImportList::with_preset("bignum").expect("Missing bignum preset"),
74
Some("bignum_"),
75
)),
76
- _ => return Err(ModuleError::NotSupported),
+ _ => return Err(ModuleError::InvalidConfigValue("preset".to_string(), preset_individual.to_string())),
77
78
79
0 commit comments