Mention domain in the error message in NNS #88
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
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-contract#88
Loading…
Reference in a new issue
No description provided.
Delete branch "elebedeva/frostfs-contract:fix/domain-error-msg"
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 #81
Fixed error message looks like this:
Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com
5d255b72d5
toc4a6f82953
@ -233,3 +233,3 @@
}
if parentExpired(ctx, fragments) {
panic("parent does not exist or is expired")
panic("parent of " + name + " does not exist or is expired")
parentExpired
checks all parents in chain, it would be nice to know exactly which domain does not exist. We can achieve this either by returning index in fragments or replacingparentExpired
withcheckParentExist
inside the function. AllparentExpired
usages panic anyway.Replaced all
parentExpired
checks withcheckParentExist
.c4a6f82953
to5381ea1ce4
5381ea1ce4
toaef3869ffb
aef3869ffb
toff4132f165
@ -350,3 +350,3 @@
c.Invoke(t, true, "isAvailable", "dom.domain.com")
c.InvokeFail(t, "parent does not exist or is expired", "isAvailable", "dom.dom.domain.com")
c.InvokeFail(t, "domain does not exist or is expired: dom.domain.com", "isAvailable", "dom.dom.domain.com")
Could you also add this test before this line?
The error should be the same, but with a different domain ("domain.com").
Added.
ff4132f165
toa3d5e02f20
invalid domain name format
message #92