chore(node-core): log errors in debug when ETA fails to calculate (#6971)

This commit is contained in:
Alexey Shekhirin
2024-03-05 19:20:37 +00:00
committed by GitHub
parent 405f9ab07e
commit 33d01d3206
5 changed files with 29 additions and 22 deletions

View File

@ -99,9 +99,7 @@ impl PayloadAttributes for CustomPayloadAttributes {
// custom validation logic - ensure that the custom field is not zero
if self.custom == 0 {
return Err(AttributesValidationError::invalid_params(
CustomError::CustomFieldIsNotZero,
));
return Err(AttributesValidationError::invalid_params(CustomError::CustomFieldIsNotZero))
}
Ok(())