node: Fix non-informative message when parse node attributes #475
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#475
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/455-fix-logs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #455
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
@ -37,3 +36,3 @@
if k == "" {
return errors.New("empty key")
return fmt.Errorf("unable to parse key of the node attribute from string '%s'", attrs[i])
To me
empty key
andempty value
are OK, they just need a little more context (that these are key/value from a sectionnode.attributes
Updated.
@ -22,3 +21,3 @@
k, v, found := strings.Cut(line, keyValueSeparator)
if !found {
return errors.New("missing attribute key and/or value")
return fmt.Errorf("wrong format for attribute: '%s'", attrs[i])
s/attribute/node attribute/ ? To be consistent with the errors below.
Fixed.
0a51f2c21f
to1fa7ebc457