aboutsummaryrefslogtreecommitdiff
path: root/gg.1
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-10-15 15:06:34 +0000
committerOmar Polo <op@omarpolo.com>2023-10-15 15:06:34 +0000
commitc7bcd4a8a9b22a4b28136e24069279cb93b1e43d (patch)
treec42aa12a8c82f68a4ef72c2fc933ca2cc9c5f834 /gg.1
parent4db22ea6547cf324376dc9561e01b84e78825e4d (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.14
1 files changed, 3 insertions, 1 deletions
diff --git a/gg.1 b/gg.1
index 3f0acad..6f62e68 100644
--- a/gg.1
+++ b/gg.1
@@ -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