summaryrefslogtreecommitdiffstats
path: root/debian/libumberlog-dev.install
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-03-24 11:17:03 +0100
committerGergely Nagy <algernon@balabit.hu>2012-03-24 11:17:03 +0100
commit21e8d846ed040a1bf55987036578807d5826d958 (patch)
tree6a80df2b442bb63059ff874fe9dd9f3ff1b7ec8f /debian/libumberlog-dev.install
parentd5dd310da5fdad1690827293ae7f4260ec9ed971 (diff)
Implement proper error handling.
Instead of calling abort() if vasprintf() fails, and ignoring possible errors from the JSON library, do handle errors reasonably sanely: check return values, and return an error state from all functions, and propagate it up to the application level, too. This means that the legacy overrides will silently fail, but set errno appropriately in case serializing to JSON fails, and do what the system libc does with syslog otherwise. The new functions can return NULL or non-zero on error, which the application can then handle as it sees fit. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'debian/libumberlog-dev.install')
0 files changed, 0 insertions, 0 deletions