Skip to content

Conversation

@fasuizu-br
Copy link

Summary

The error message in recv_packet() used "Server returned wrong SNTP version {vn}, expected 4." as a plain string literal instead of wrapping it in format!(). This caused the error to display the literal text {vn} instead of the actual version number.

Closes #9

Test plan

  • cargo check passes
  • cargo test — all tests pass

The error string used inline variable syntax "{vn}" but was a plain
string literal instead of a format!() macro call, causing the error
to display the literal text "{vn}" instead of the actual version.

Closes risoflora#9
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.

Bug: error message string "{vn}" is not interpolated

1 participant