We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b9fe70 commit e868dc7Copy full SHA for e868dc7
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,12 @@ impl<'a> ModulePreset for RemapImports<'a> {
73
ImportList::with_preset("bignum")?,
74
Some("bignum_"),
75
)),
76
- _ => return Err(ModuleError::NotSupported),
+ _ => {
77
+ return Err(ModuleError::InvalidConfigValue(
78
+ "preset".to_string(),
79
+ preset_individual.to_string(),
80
+ ))
81
+ }
82
83
84
0 commit comments