]> code.delx.au - pulseaudio/commit
core: Slightly more helpful pa_cstrerror for unknown errors
authorThomas Martitz <kugel@rockbox.org>
Mon, 20 Aug 2012 21:50:39 +0000 (23:50 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 23 Oct 2012 06:46:50 +0000 (12:16 +0530)
commit9f3bba8bd4c5c5bfeaf22d2d314efba2f3f0b065
tree7056c79e971055adfe26da2c194587f431a11157
parentb342daded9f3eed967637bc32ae066bce827c81d
core: Slightly more helpful pa_cstrerror for unknown errors

On Windows, strerror can actually return "Unknown Error"
(e.g. for large errnums). The code assumes the return value to be helpful.
Make it slightly more helpful by catching the message and appending the
errnum.
src/pulsecore/core-error.c