Files
mautrix-telegram/pkg/gotd
Igor Artamonov aab48f0dbe
Go / Lint (old) (push) Failing after 4m43s
Go / Lint (latest) (push) Failing after 4m40s
Go / Lint (old) (pull_request) Failing after 4m40s
Go / Lint (latest) (pull_request) Failing after 4m43s
faketls: include real record type and peek bytes on handshake errors
The previous error path used errors.Wrap(err, "unexpected record type")
inside type-mismatch branches where err was already nil. With
go-faster/errors that produced a wrapError with no cause and no detail,
making the user-visible message "unexpected record type" useless for
diagnostics — there was no way to tell what mtg actually sent.

Switch to errors.Errorf with the actual received byte and a 32-byte
hex peek of the read buffer. Also wrap the read-error path with the
same peek so a partial response is visible.

This is a diagnostic-only change; the parser semantics are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 10:51:50 +03:00
..
2025-06-27 20:03:37 -07:00
2026-04-01 21:08:49 +03:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2026-02-26 18:24:51 +02:00
2025-12-03 17:11:20 +02:00
2025-06-27 20:03:37 -07:00
2026-04-01 21:08:49 +03:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2026-02-26 18:24:51 +02:00
2026-03-28 16:50:51 +02:00
2026-02-16 15:41:08 +02:00
2025-06-27 20:03:37 -07:00
2025-12-03 17:11:20 +02:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2026-04-01 21:08:49 +03:00
2025-06-27 20:03:37 -07:00
2025-07-31 14:02:14 +03:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2025-06-27 20:03:37 -07:00
2026-03-28 16:58:28 +02:00
2026-03-28 16:58:28 +02:00
2025-12-03 17:11:20 +02:00

gotd

Fork of https://github.com/gotd/td.

Everything under this directory is licensed under MIT like upstream gotd.