diff options
author | Omar Polo <op@omarpolo.com> | 2023-10-15 15:06:34 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-10-15 15:06:34 +0000 |
commit | c7bcd4a8a9b22a4b28136e24069279cb93b1e43d (patch) | |
tree | c42aa12a8c82f68a4ef72c2fc933ca2cc9c5f834 /gg.1 | |
parent | 4db22ea6547cf324376dc9561e01b84e78825e4d (diff) |
gg: exit with the gemini response code
0 is still used for 2X replies, and "external" failures (e.g.
network, tls, ...) are still using exit code 1. Gemini non-2x
replies now get their response code reported as-is as status code.
Diffstat (limited to 'gg.1')
-rw-r--r-- | gg.1 | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,7 @@ .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.Dd $Mdocdate: January 30 2022$ +.Dd $Mdocdate: October 17 2023$ .Dt GG 1 .Os .Sh NAME @@ -92,6 +92,8 @@ after The .Nm utility exits with zero if the response code was in the 2x range. +If a failure occurs, it exits with status code 1. +Otherwise, the error code reflects the Gemini response code. .Sh ACKNOWLEDGEMENTS .Nm uses the |