File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ pub struct Registry {
37
37
#[ serde( deny_unknown_fields) ]
38
38
pub struct WhatIf {
39
39
#[ serde( skip_serializing_if = "Option::is_none" ) ]
40
- pub message : Option < String >
40
+ pub error : Option < String >
41
41
}
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl RegistryHelper {
148
148
key_path : self . config . key_path . clone ( ) ,
149
149
value_data : Some ( convert_reg_value ( & data) ?) ,
150
150
value_name : self . config . value_name . clone ( ) ,
151
- what_if : Some ( WhatIf { message : None } ) ,
151
+ what_if : Some ( WhatIf { error : None } ) ,
152
152
..Default :: default ( )
153
153
} ) ) ;
154
154
}
@@ -161,7 +161,7 @@ impl RegistryHelper {
161
161
if is_what_if {
162
162
return Ok ( Some ( Registry {
163
163
key_path : self . config . key_path . clone ( ) ,
164
- what_if : Some ( WhatIf { message : None } ) ,
164
+ what_if : Some ( WhatIf { error : None } ) ,
165
165
..Default :: default ( )
166
166
} ) ) ;
167
167
}
@@ -245,7 +245,7 @@ impl RegistryHelper {
245
245
if is_what_if {
246
246
return Ok ( Some ( Registry {
247
247
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 ( ) ) } ) ,
249
249
..Default :: default ( )
250
250
} ) ) ;
251
251
}
You can’t perform that action at this time.
0 commit comments