func github.com/go-faster/errors.Errorf

117 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/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#L25: 		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#L41: 		return nil, errors.Errorf("data length is bigger that 144 (%d)", len(data))

	github.com/gotd/td/exchange
		client_flow.go#L293: 			return ClientExchangeResult{}, errors.Errorf("retry required: %x", v.NewNonceHash2)
		client_flow.go#L295: 			return ClientExchangeResult{}, errors.Errorf("dh_hen_fail: %x", v.NewNonceHash3)
		client_flow.go#L297: 			return ClientExchangeResult{}, errors.Errorf("unexpected SetClientDHParamsRequest result %T", v)
		client_flow.go#L302: 		return ClientExchangeResult{}, errors.Errorf("unexpected ReqDHParamsRequest result %T", p)
		server_flow.go#L198: 				err := errors.Errorf(
		server_flow.go#L207: 				err := errors.Errorf(

	github.com/gotd/td/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/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/mtproxy/faketls
		client_hello.go#L81: 		return [32]byte{}, errors.Errorf("ClientHello is too short: %d bytes", len(record))
		faketls.go#L104: 			return 0, errors.Errorf("unsupported record type %v", rec.Type)
		record.go#L42: 		return record{}, errors.Errorf("unknown protocol version %v", versionRaw)

	github.com/gotd/td/mtproxy/obfuscated2
		keys.go#L32: 			return errors.Errorf("invalid secret size %d", len(secret))

	github.com/gotd/td/proto
		container.go#L59: 		return errors.Errorf("message length %d is invalid", m.Bytes)
		unencrypted_message.go#L26: 			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#L67: 	return nil, errors.Errorf("file %q not found", fileName)
		file.go#L95: 		return nil, errors.Errorf("invalid data length %d", l)
		file.go#L170: 		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#L50: 		return nil, errors.Errorf("invalid length %d, must be padded to 16", l)
		local_key.go#L75: 		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)

	github.com/gotd/td/syncio
		writer_at.go#L55: 		return 0, errors.Errorf("invalid offset %d", off)
		writer_at.go#L80: 		return 0, errors.Errorf("invalid offset %d", off)

	github.com/gotd/td/telegram
		cdn.go#L183: 			return fetchedCDNKeys{}, errors.Errorf("unexpected CDN keys type %T", result.Val)
		cdn.go#L290: 	return nil, errors.Errorf("no CDN public keys for CDN DC %d after %d refresh attempts", dcID, maxRefreshAttempts)
		pool.go#L44: 		return nil, errors.Errorf("invalid max value %d", max)
		pool.go#L68: 		return nil, errors.Errorf("invalid max value %d", max)
		pool.go#L73: 		return nil, errors.Errorf("unknown DC %d", dcID)
		pool.go#L102: 			return nil, errors.Errorf("no CDN public keys available for CDN DC %d", dcID)
		pool.go#L211: 		return nil, errors.Errorf("invalid max value %d", max)
		self.go#L22: 		return nil, errors.Errorf("users response count: %v", users)
		tdlib_json.go#L90: 			return "", errors.Errorf("unknown method: %q", typeID)
		tdlib_json.go#L98: 		return "", errors.Errorf("type not found: %q", telegramName)
		tdlib_json.go#L105: 		return "", errors.Errorf("constructor not found for type: %q (id: 0x%x)", telegramName, typeIDValue)
		tdlib_json.go#L110: 		return "", errors.Errorf("failed to create instance for type: %q", telegramName)
		tdlib_json.go#L116: 		return "", errors.Errorf("type %q does not support TDLib JSON decoding", telegramName)
		tdlib_json.go#L129: 		return "", errors.Errorf("type %q does not implement bin.Encoder", telegramName)
		tdlib_json.go#L150: 		return "", errors.Errorf("response type does not support TDLib JSON encoding")
		tdlib_json.go#L179: 		return errors.Errorf("unknown response type: 0x%x", id)
		tdlib_json.go#L184: 		return errors.Errorf("failed to create response instance for type: 0x%x", id)
		tdlib_json.go#L190: 		return errors.Errorf("response type does not implement bin.Decoder")

	github.com/gotd/td/telegram/auth
		flow.go#L101: 			return errors.Errorf("unexpected authorization type: %T", a)
		flow.go#L104: 		return errors.Errorf("unexpected sent code type: %T", sentCode)
		flow.go#L219: 		return "", errors.Errorf("environment variable %q not set", env)
		flow.go#L287: 			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)
		password.go#L243: 			return nil, errors.Errorf("unsupported algo: %T", p.NewAlgo)
		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#L63: 		return Token{}, errors.Errorf("unexpected type %T", result)
		qrlogin.go#L104: 			return nil, errors.Errorf("unexpected type %T", res)
		qrlogin.go#L109: 			return nil, errors.Errorf("unexpected type %T", success.Authorization)
		qrlogin.go#L115: 			return nil, errors.Errorf("unexpected type %T", t.Authorization)
		qrlogin.go#L119: 		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#L152: 		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)

	github.com/gotd/td/telegram/downloader
		cdn_plan.go#L26: 		return nil, errors.Errorf("invalid CDN limit %d", limit)
		cdn_plan.go#L29: 		return nil, errors.Errorf("invalid CDN offset %d", offset)
		cdn_plan.go#L32: 		return nil, errors.Errorf("CDN offset %d must be divisible by %d", offset, cdnMinChunk)
		cdn_plan.go#L35: 		return nil, errors.Errorf("CDN limit %d must be divisible by %d", limit, cdnMinChunk)
		cdn_plan.go#L53: 			return nil, errors.Errorf("unable to build CDN request plan for offset=%d limit=%d", offset, limit)
		cdn_state_machine.go#L286: 					return chunk{}, errors.Errorf("unexpected type %T", result)
		cdn_verify.go#L167: 		errors.Errorf("hash for offset %d not found", offset),
		cdn_verify.go#L199: 			return nil, errors.Errorf(
		cdn_verify.go#L221: 		return nil, errors.Errorf("unexpected window type %T", v)
		cdn_verify.go#L243: 			return errors.Errorf("invalid CDN hash limit %d at offset %d", hash.Limit, current)
		cdn_verify.go#L248: 			return errors.Errorf("invalid CDN hash window [%d,%d) at offset %d", windowStart, windowEnd, current)
		cdn_verify.go#L294: 				return errors.Errorf(
		cdn_verify.go#L320: 		return nil, errors.Errorf(
		master.go#L68: 		return chunk{}, errors.Errorf("unexpected type %T", r)

	github.com/gotd/td/tg
		json_invoke.go#L67: 		return "", errors.Errorf("unknown method or type: %q", typeField)
		json_invoke.go#L74: 		return "", errors.Errorf("no constructor for type ID: 0x%x (%s)", typeID, typeField)
		json_invoke.go#L79: 		return "", errors.Errorf("constructor returned nil for type ID: 0x%x (%s)", typeID, typeField)
		json_invoke.go#L133: 		return errors.Errorf("unknown response type: 0x%x", id)
		json_invoke.go#L138: 		return errors.Errorf("failed to create response instance for type: 0x%x", id)
		json_invoke.go#L144: 		return errors.Errorf("response type does not implement bin.Decoder")
		json_invoke.go#L334: 		return jsonValue{}, errors.Errorf("unexpected JSON token: %v", tt)
		json_invoke.go#L412: 		return errors.Errorf("unsupported JSON value type: %v", val.typ)
		json_invoke.go#L435: 		return errors.Errorf("unknown type: %q", typeName)
		json_invoke.go#L441: 		return errors.Errorf("no constructor for type: %q", typeName)
		json_invoke.go#L446: 		return errors.Errorf("constructor returned nil for type: %q", typeName)
		json_invoke.go#L580: 		return "", errors.Errorf("type name not found for ID: 0x%x", typeID)
		json_invoke.go#L587: 		return "", errors.Errorf("no constructor for type ID: 0x%x", typeID)