Skip to content

Commit d236ab7

Browse files
committed
rename message to error
1 parent dca38cb commit d236ab7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

registry/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ pub struct Registry {
3737
#[serde(deny_unknown_fields)]
3838
pub struct WhatIf {
3939
#[serde(skip_serializing_if = "Option::is_none")]
40-
pub message: Option<String>
40+
pub error: Option<String>
4141
}

registry/src/registry_helper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl RegistryHelper {
148148
key_path: self.config.key_path.clone(),
149149
value_data: Some(convert_reg_value(&data)?),
150150
value_name: self.config.value_name.clone(),
151-
what_if: Some(WhatIf { message: None }),
151+
what_if: Some(WhatIf { error: None }),
152152
..Default::default()
153153
}));
154154
}
@@ -161,7 +161,7 @@ impl RegistryHelper {
161161
if is_what_if {
162162
return Ok(Some(Registry {
163163
key_path: self.config.key_path.clone(),
164-
what_if: Some(WhatIf { message: None }),
164+
what_if: Some(WhatIf { error: None }),
165165
..Default::default()
166166
}));
167167
}
@@ -245,7 +245,7 @@ impl RegistryHelper {
245245
if is_what_if {
246246
return Ok(Some(Registry {
247247
key_path: self.config.key_path.clone(),
248-
what_if: Some(WhatIf { message: Some(error.to_string()) }),
248+
what_if: Some(WhatIf { error: Some(error.to_string()) }),
249249
..Default::default()
250250
}));
251251
}

0 commit comments

Comments
 (0)