Skip to content

Commit

Permalink
Stop logging "Error: (nil)" in darwin-framework-tool YAML bits. (#30418)
Browse files Browse the repository at this point in the history
Only log things that look like "error:" if there is an error.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 4, 2024
1 parent 23ef57e commit 4375630
Show file tree
Hide file tree
Showing 2 changed files with 20,690 additions and 4,138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ class {{filename}}: public TestCommandBridge
{{/chip_tests_item_parameters}}
[cluster writeAttribute{{>attribute}}WithValue:{{#chip_tests_item_parameters}}{{asLowerCamelCase name}}Argument{{/chip_tests_item_parameters}} completion:^(NSError * _Nullable err) {
{{/if}}
NSLog(@"{{label}} Error: %@", err);
if (err != nil) {
NSLog(@"{{label}}: Error: %@", err);
} else {
NSLog(@"{{label}}: Success");
}

{{#chip_tests_item_responses}}
{{#if error}}
Expand Down
Loading

0 comments on commit 4375630

Please sign in to comment.