1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-14 03:48:13 +01:00
eclair/eclair-core
Pascal Grange 3a49f5dd43
FIX eclair-cli error code in case of HTTP problem (#2798)
Last command of eclair-cli is a curl piped to jq. In case of an
error with the curl command (for instance, eclair service is not
running) the error code was swallowed by the pipe wich will
return the exit code of the last command of the pipe (here, jq).

Setting `pipefail` ensures that the error code of curl is
preserve in case of HTTP issue.

This can come handy, for instance, to check that eclair is not
ok:

```
if eclair-cli getinfo
then
  echo eclair is answering
else
  echo problem communicating with eclair
fi
```
2024-01-02 10:39:07 +01:00
..
src Fix typos in various comments (#2805) 2024-01-02 09:31:57 +01:00
eclair-cli FIX eclair-cli error code in case of HTTP problem (#2798) 2024-01-02 10:39:07 +01:00
pom.xml Update logback-classic (#2796) 2023-12-06 15:09:11 +01:00