Re: [Hamlib-developer] Feature request: User friendly version of errors
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: George B. <geo...@gm...> - 2025-08-31 22:02:48
|
Funny, we were just discussing this internally... You probably want to use perror2(), which doesn't add the stack trace. On 8/31/25 5:58 PM, Peter Marks wrote: > Dear Hamlib developers, > > I don’t seem to be able to create a feature request ticket on > sourceforge. The button is dim. > > When hamlib reports an error, typically a timeout talking to the > radio, the error string returned by rigerror() is very detailed and > includes a stack trace. > > const char* rigerror > <https://hamlib.sourceforge.net/manuals/1.2.15/group__rig.html#ga675d0903517323b2689446d9513fc8db> > ( int /errnum/ ) > > get string describing the error code > > > I’m involved in the FreeDV <https://freedv.org> project which uses > hamlib. We show the error string and find that it is intimidating to > users. They sometimes report that FreeDV has “crashed”. > > It would be great if there was a second version of the error string > with just the bit that the user needs. “Timeout talking to rig” for > example. > > Many thanks for your great work. > > Peter > VK3TPM > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer |