Menu

#8 libspnav spnav_open() writes to stderr on failure

closed
nobody
None
5
2020-02-21
2020-02-20
No

Hi,

the spnav_open() function always writes the error to stderr. So there is always an error on the console if a program uses libspnav and the spacenav daemon is not running or not even installed. This might irritate users (dicussed in the FreeCAD forum). Would it be possible just to store ERRNO and provide a function to access it? Then it would be possible to log or ignore the error in the application.

I could make an implementation and send a pull request for review.

Cheers,
Torsten

Discussion

  • John Tsiombikas

    John Tsiombikas - 2020-02-21

    Are you refering to the "failed to connect" message? Yeah that's really unnecessary, I just removed it. Commit: 844338b

     
  • John Tsiombikas

    John Tsiombikas - 2020-02-21
    • status: open --> closed
     
  • Torsten Sadowski

    Thank you!

     

Log in to post a comment.