Add function for getting error strings
Bug #989131 reported by
Nicholas Humfrey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mosquitto |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Please add a function to the client library, to get an error message string for an error number.
Something like:
const char* mosquitto_
It may also be preferable to put the error numbers into a enum, so that when using a switch statement, the compiler can check that you have implemented all the values.
Changed in mosquitto: | |
milestone: | 0.16 → 1.0 |
status: | In Progress → Fix Committed |
Changed in mosquitto: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Sounds reasonable. Does using enums have any implication for ABI stability? I had a feeling #defines were better but I can't find anything that says enums will break binary compatibility if you add to them.