Skip to content

relcaimspace: add nodeID to error message#256

Merged
mergify[bot] merged 1 commit into
csi-addons:mainfrom
Madhu-1:add-nodeid-for-log
Oct 19, 2022
Merged

relcaimspace: add nodeID to error message#256
mergify[bot] merged 1 commit into
csi-addons:mainfrom
Madhu-1:add-nodeid-for-log

Conversation

@Madhu-1

@Madhu-1 Madhu-1 commented Oct 18, 2022

Copy link
Copy Markdown
Member

add nodeID to error message to provide more details for debugging.

Signed-off-by: Madhu Rajanna madhupr007@gmail.com


if !controllerFound && !nodeFound {
err = errors.New("Controller and Node Client not found")
err = fmt.Errorf("Controller and Node Client not found for %s nodeID", target.nodeID)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
err = fmt.Errorf("Controller and Node Client not found for %s nodeID", target.nodeID)
err = fmt.Errorf("Controller and Node Client not found for %q nodeID", target.nodeID)

add quotes so it stands out ?

identity.Capability_ReclaimSpace_ONLINE)
if nodeClient == nil {
return nil, errors.New("node Client not found")
return nil, fmt.Errorf("node Client not found for %s nodeID", target.nodeID)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return nil, fmt.Errorf("node Client not found for %s nodeID", target.nodeID)
return nil, fmt.Errorf("node Client not found for %q nodeID", target.nodeID)

add quotes so it stands out ?

add nodeID to error message to provide more
details for debugging.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@Madhu-1 Madhu-1 force-pushed the add-nodeid-for-log branch from 8792c95 to cdda823 Compare October 18, 2022 10:26
@Madhu-1 Madhu-1 requested a review from Rakshith-R October 18, 2022 10:27
@mergify mergify Bot merged commit 2f11ffb into csi-addons:main Oct 19, 2022
Nikhil-Ladha pushed a commit to Nikhil-Ladha/kubernetes-csi-addons that referenced this pull request Feb 12, 2025
Syncing latest changes from upstream main for kubernetes-csi-addons
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.

3 participants