Skip to content

Fix error handling in removeNode notary request#3786

Merged
cthulhu-rider merged 1 commit intomasterfrom
error-from-control-notary-request
Jan 26, 2026
Merged

Fix error handling in removeNode notary request#3786
cthulhu-rider merged 1 commit intomasterfrom
error-from-control-notary-request

Conversation

@End-rey
Copy link
Contributor

@End-rey End-rey commented Jan 26, 2026

Closes #3738.

Previously, errors from `RequestNotary` in case of `removeNode` were not
propagated because a local `err` variable was shadowing the function-scoped
error. Now using the function-scoped `err` variable to ensure errors are
properly returned to the caller.

Closes #3738.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.66%. Comparing base (24a99c2) to head (115f664).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/innerring/network.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3786      +/-   ##
==========================================
- Coverage   25.68%   25.66%   -0.02%     
==========================================
  Files         660      660              
  Lines       42203    42204       +1     
==========================================
- Hits        10838    10832       -6     
- Misses      30383    30389       +6     
- Partials      982      983       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, took me some time to figure out why it's correct now. I thought it's something more systematic, but looks like only a single call is affected.

@cthulhu-rider cthulhu-rider merged commit 57bb772 into master Jan 26, 2026
18 of 22 checks passed
@cthulhu-rider cthulhu-rider deleted the error-from-control-notary-request branch January 26, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors are not passed correctly to client from control service

3 participants