Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(network): improve error message readability #64

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

wyq777x
Copy link
Collaborator

@wyq777x wyq777x commented Sep 26, 2024

errorinfo reflection

whats new:

try-catch added to:
async_connect
async_write
async_read

unordered_map<int, std::string> _errorCodeMap{101~503}

Error(int code)
: kind(Unknown)
, _reason(_errorCodeMap.at(code)) {}

Copy link

clang-tidy review says "All clean, LGTM! 👍"

Copy link

clang-tidy review says "All clean, LGTM! 👍"

@wyq777x wyq777x changed the title Feat/network/errorinfo reflection feat(network): improve error message readability Sep 26, 2024
@wyq777x wyq777x self-assigned this Sep 26, 2024
@wyq777x wyq777x added the feature New feature or request label Sep 26, 2024
@wyq777x wyq777x linked an issue Sep 26, 2024 that may be closed by this pull request
Copy link

clang-tidy review says "All clean, LGTM! 👍"

@Mairon1206 Mairon1206 merged commit 785afba into dev Sep 26, 2024
4 checks passed
@Mairon1206 Mairon1206 deleted the feat/network/Errorinfo-reflection branch September 26, 2024 12:31
Copy link

clang-tidy review says "All clean, LGTM! 👍"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: improve error message readability
2 participants