summaryrefslogtreecommitdiff
path: root/src/plugins/logger/logger-info.c
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-13 09:26:00 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-10-13 09:26:00 +0200
commit3735397a0ff5347308f3dae9d56ec1a0e61133e6 (patch)
tree315640ee020360e7a39810eefe430c841e88d542 /src/plugins/logger/logger-info.c
parent57b2efd82bc912225083bc2b1cc9f895c5170896 (diff)
downloadweechat-3735397a0ff5347308f3dae9d56ec1a0e61133e6.zip
core: add error codes to output in hook_url
When hook_url fails, add an error_code field in the output in addition to the error field. This is so the caller can get which error happened programatically, without having to parse the (possibly translated) error string. It uses the same error codes as the return_code in hook_process, and in addition adds 5 for an error from pthread_create and 6 for a timeout error. If the error is from pthread_create, an additional field `error_code_pthread` with the error code from pthread_create is added. If the error is from curl, an additional field `error_code_curl` with the error code from curl is added.
Diffstat (limited to 'src/plugins/logger/logger-info.c')
0 files changed, 0 insertions, 0 deletions