mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Better error msg on bad fingerprint
This commit is contained in:
parent
f701641382
commit
ec9476e5ab
2 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,7 @@ import (
|
|||
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/bridgefingerprint"
|
||||
)
|
||||
|
||||
var ErrBridgeNotFound = errors.New("bridge not found")
|
||||
var ErrBridgeNotFound = errors.New("bridge with requested fingerprint is unknown to the broker")
|
||||
|
||||
func NewBridgeListHolder() BridgeListHolderFileBased {
|
||||
return &bridgeListHolder{}
|
||||
|
|
|
@ -185,7 +185,10 @@ func (i *IPC) ClientOffers(arg messages.Arg, response *[]byte) error {
|
|||
}
|
||||
|
||||
if _, err := i.ctx.GetBridgeInfo(BridgeFingerprint); err != nil {
|
||||
return err
|
||||
return sendClientResponse(
|
||||
&messages.ClientPollResponse{Error: err.Error()},
|
||||
response,
|
||||
)
|
||||
}
|
||||
|
||||
offer.fingerprint = BridgeFingerprint.ToBytes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue