[#1431] objsvc: Use specific values in message about address mismatch
All checks were successful
DCO action / DCO (pull_request) Successful in 1m5s
Tests and linters / Run gofumpt (pull_request) Successful in 1m25s
Vulncheck / Vulncheck (pull_request) Successful in 2m6s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m19s
Build / Build Components (pull_request) Successful in 2m27s
Tests and linters / gopls check (pull_request) Successful in 2m47s
Tests and linters / Staticcheck (pull_request) Successful in 3m3s
Tests and linters / Lint (pull_request) Successful in 3m24s
Tests and linters / Tests (pull_request) Successful in 4m24s
Tests and linters / Tests with -race (pull_request) Successful in 5m51s
All checks were successful
DCO action / DCO (pull_request) Successful in 1m5s
Tests and linters / Run gofumpt (pull_request) Successful in 1m25s
Vulncheck / Vulncheck (pull_request) Successful in 2m6s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m19s
Build / Build Components (pull_request) Successful in 2m27s
Tests and linters / gopls check (pull_request) Successful in 2m47s
Tests and linters / Staticcheck (pull_request) Successful in 3m3s
Tests and linters / Lint (pull_request) Successful in 3m24s
Tests and linters / Tests (pull_request) Successful in 4m24s
Tests and linters / Tests with -race (pull_request) Successful in 5m51s
This makes troubleshooting failed operations much easier Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
acd6eb1815
commit
a7fe9655d3
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func newTrustedTarget(prm *objectwriter.Params) (transformer.ChunkedObjectWriter
|
|||
user.IDFromKey(&ownerSession, key.PublicKey)
|
||||
|
||||
if !ownerObj.Equals(ownerSession) {
|
||||
return nil, errors.New("session token is missing but object owner id is different from the default key")
|
||||
return nil, fmt.Errorf("session token is missing but object owner id (%s) is different from the default key (%s)", ownerObj, ownerSession)
|
||||
}
|
||||
} else {
|
||||
if !ownerObj.Equals(sessionInfo.Owner) {
|
||||
|
|
Loading…
Reference in a new issue