Skip to content

Name host and port in login and TLS errors; fix skip hint - #18

Merged
necessarylion merged 1 commit into
mainfrom
fix/small-fixes-2026-11-10
Nov 10, 2026
Merged

necessarylion merged 1 commit into
mainfrom
fix/small-fixes-2026-11-10

Conversation

@mydoxie

@mydoxie mydoxie commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Problem

Fix

  • connect_error is gone. All login and SSL errors now use dial_error, or the new tls_error. Both say the host and port, eg. error performing TLS handshake with server at "db.local", port 5432: server does not support TLS. The password is never in the message.
  • Errors the server sends itself (eg. 28P01 wrong password) do not change. They are PgServerException with the server's own fields, and apps may match on the message.
  • The skip hint now says the app's root pubspec.yaml, the same text as dox_mysql_native (docs: remove Laravel mentions from README #19).

Tests

  • cargo fmt --check, cargo clippy --release --all-targets -- -D warnings, cargo test --release (13 pass, the host and port test now also checks the TLS text).
  • dart format, dart analyze --fatal-infos: clean.
  • DRIVER=postgres DB_PORT=5432 dart test --concurrency=1 against a local Postgres 16 in Docker: 48 pass.

No version or ABI change. Changelog under Unreleased.

Login and TLS handshake errors from the driver did not say which server
failed. Now they say the host and port, like the connect error. The
password is never in the message.

The skip hint said pubspec.yaml. It now says the app's root
pubspec.yaml, like dox_mysql_native.

@necessarylion necessarylion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review

One review round. No findings. No code or test matches the old error texts. The exception types stay the same. No password is in a message. cargo fmt, clippy, cargo test, dart format and dart analyze are clean.

@necessarylion
necessarylion merged commit e3386df into main Nov 10, 2026
11 checks passed
@necessarylion
necessarylion deleted the fix/small-fixes-2026-11-10 branch November 10, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants