Small cleanup for error message. (#10502)

- The `Fail` function can handle file location automatically.
- Report concatenated error for connection poll.
- Typos.
This commit is contained in:
Jiaming Yuan
2024-07-02 13:36:41 +08:00
committed by GitHub
parent 804cf85fe4
commit 5f0c1e902b
3 changed files with 12 additions and 21 deletions

View File

@@ -183,7 +183,7 @@ XGB_DLL int XGTrackerFree(TrackerHandle handle) {
//
// - We don't have the first case since we never access the raw pointer.
//
// - We don't hve the second case for most of the scenarios since tracker is an unique
// - We don't have the second case for most of the scenarios since tracker is an unique
// object, if the free function is called before another function calls, it's likely
// to be a bug in the user code. The use_count should only decrease in this function.
while (ptr->first.use_count() != 1) {