diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-13 09:26:00 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-13 09:26:00 +0200 |
commit | 3735397a0ff5347308f3dae9d56ec1a0e61133e6 (patch) | |
tree | 315640ee020360e7a39810eefe430c841e88d542 /src/plugins/javascript/weechat-js-api.cpp | |
parent | 57b2efd82bc912225083bc2b1cc9f895c5170896 (diff) | |
download | weechat-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/javascript/weechat-js-api.cpp')
0 files changed, 0 insertions, 0 deletions