func github.com/go-faster/errors.Errorf
73 uses
github.com/go-faster/errors (current package)
format.go#L42: func Errorf(format string, a ...interface{}) error {
github.com/go-faster/jx
dec_num.go#L75: return v, errors.Errorf("unexpected %s", d.Next())
num.go#L56: return dotIdx, errors.Errorf("non-zero fractional part %q at %d", c, i)
github.com/gotd/td/internal/crypto
check_gp.go#L41: return errors.Errorf("unexpected g = %d: g should be equal to 2, 3, 4, 5, 6 or 7", g)
cipher_decrypt.go#L54: return nil, errors.Errorf("message length is invalid: %d less than zero", n)
cipher_decrypt.go#L56: return nil, errors.Errorf("message length is invalid: %d is not divisible by 4", n)
cipher_decrypt.go#L58: return nil, errors.Errorf("padding %d of message is too big", paddingLen)
encrypted_message_data.go#L96: return errors.Errorf(
encrypted_message_data.go#L145: return errors.Errorf(
exchange.go#L26: return nil, errors.Errorf("invalid len of data_with_hash (%d %% 16 != 0)", len(dataWithHash))
public_keys.go#L45: return nil, errors.Errorf("parsed unexpected key type %T", k)
rsa_hashed.go#L19: return nil, errors.Errorf("data length %d is too big", len(data))
rsa_pad.go#L43: return nil, errors.Errorf("data length is bigger that 144 (%d)", len(data))
github.com/gotd/td/internal/exchange
client_flow.go#L267: return ClientExchangeResult{}, errors.Errorf("retry required: %x", v.NewNonceHash2)
client_flow.go#L269: return ClientExchangeResult{}, errors.Errorf("dh_hen_fail: %x", v.NewNonceHash3)
client_flow.go#L271: return ClientExchangeResult{}, errors.Errorf("unexpected SetClientDHParamsRequest result %T", v)
client_flow.go#L276: return ClientExchangeResult{}, errors.Errorf("unexpected ReqDHParamsRequest result %T", p)
server_flow.go#L172: err := errors.Errorf(
github.com/gotd/td/internal/mtproto
handle_bad_msg.go#L66: return errors.Errorf("unknown type id 0x%d", id)
ping.go#L41: return errors.Errorf("decode: %x", err)
rpc.go#L69: return errors.Errorf("unexpected response type: %T", resp.RpcDropAnswer)
github.com/gotd/td/internal/mtproxy
secret.go#L70: return Secret{}, errors.Errorf("invalid secret %q", string(secret))
secret.go#L79: return Secret{}, errors.Errorf("unknown tag %+x", r.Tag)
github.com/gotd/td/internal/mtproxy/faketls
faketls.go#L107: return 0, errors.Errorf("unsupported record type %v", rec.Type)
record.go#L39: return record{}, errors.Errorf("unknown protocol version %v", versionRaw)
github.com/gotd/td/internal/mtproxy/obfuscated2
keys.go#L32: return errors.Errorf("invalid secret size %d", len(secret))
github.com/gotd/td/internal/proto
container.go#L59: return errors.Errorf("message length %d is invalid", m.Bytes)
unencrypted_message.go#L24: return errors.Errorf("unexpected auth_key_id %d of plaintext message", id)
github.com/gotd/td/session
tdesktop.go#L61: return nil, errors.Errorf("key for main DC (%d) not found", dc)
tdesktop.go#L77: return nil, errors.Errorf("can't find address for DC %d", dc)
telethon.go#L25: return nil, errors.Errorf("given string too small: %d", len(hx))
telethon.go#L29: return nil, errors.Errorf("unexpected version %q, latest supported is %q",
telethon.go#L63: return nil, errors.Errorf("decoded hex has invalid length: %d", len(data))
github.com/gotd/td/session/tdesktop
file.go#L60: return nil, errors.Errorf("file %q not found", fileName)
file.go#L88: return nil, errors.Errorf("invalid data length %d", l)
file.go#L163: return errors.Errorf("data length too big (%d)", length)
key_data.go#L23: return keyData{}, errors.Errorf("invalid salt length %d", l)
key_data.go#L41: return keyData{}, errors.Errorf("key too small (%d)", l)
local_key.go#L49: return nil, errors.Errorf("invalid length %d, must be padded to 16", l)
local_key.go#L74: return nil, errors.Errorf("invalid length %d, must be padded to 16", l)
mtp_authorization.go#L64: return errors.Errorf("unexpected id %d", id)
mtp_config.go#L105: return errors.Errorf("wrong version (expected %d, got %d)", kVersion, version)
mtp_config.go#L114: return errors.Errorf("invalid environment %d", environment)
mtp_dcoptions.go#L70: return errors.Errorf("too big IP string (%d > %d)", l, maxIPSize)
mtp_dcoptions.go#L81: return errors.Errorf("too big DC secret (%d > %d)", l, maxSecretSize)
mtp_dcoptions.go#L121: return errors.Errorf("read option %d: %w", i, err)
github.com/gotd/td/telegram
pool.go#L42: return nil, errors.Errorf("invalid max value %d", max)
pool.go#L54: return nil, errors.Errorf("invalid max value %d", max)
pool.go#L59: return nil, errors.Errorf("unknown DC %d", dcID)
self.go#L22: return nil, errors.Errorf("users response count: %v", users)
github.com/gotd/td/telegram/auth
flow.go#L108: return errors.Errorf("unexpected authorization type: %T", a)
flow.go#L111: return errors.Errorf("unexpected sent code type: %T", sentCode)
flow.go#L194: return "", errors.Errorf("environment variable %q not set", env)
flow.go#L262: return "", errors.Errorf("unexpected type: %T", sentCode.Type)
password.go#L28: return nil, errors.Errorf("unsupported algo: %T", alg)
password.go#L92: return errors.Errorf("unsupported algo: %T", p.NewAlgo)
password.go#L167: return time.Time{}, errors.Errorf("unexpected type %T", v)
self.go#L22: return nil, errors.Errorf("users response count: %v", users)
signup.go#L35: return nil, errors.Errorf("got unexpected response %T", a)
github.com/gotd/td/telegram/auth/qrlogin
qrlogin.go#L52: return Token{}, errors.Errorf("unexpected type %T", result)
qrlogin.go#L94: return nil, errors.Errorf("unexpected type %T", res)
qrlogin.go#L99: return nil, errors.Errorf("unexpected type %T", success.Authorization)
qrlogin.go#L105: return nil, errors.Errorf("unexpected type %T", t.Authorization)
qrlogin.go#L109: return nil, errors.Errorf("unexpected type %T", result)
token.go#L27: return Token{}, errors.Errorf("unexpected scheme %q", parsed.Scheme)
token.go#L29: return Token{}, errors.Errorf("wrong path %q", parsed.Host)
github.com/gotd/td/telegram/dcs
dns.go#L155: return DNSConfig{}, errors.Errorf("invalid input length %d", totalLength)
mtproxy.go#L69: return nil, errors.Errorf("unknown MTProxy secret type: %d", m.secret.Type)
plain.go#L60: return nil, errors.Errorf("can't resolve %d: CDN is unsupported", dc)
plain.go#L127: return nil, errors.Errorf("no addresses for DC %d", dc)
websocket.go#L31: return nil, errors.Errorf("domain for %d not found", dc)
websocket.go#L63: return nil, errors.Errorf("can't resolve %d: MediaOnly is unsupported", dc)
websocket.go#L67: return nil, errors.Errorf("can't resolve %d: CDN is unsupported", dc)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |