Commit Diff


commit - 4db22ea6547cf324376dc9561e01b84e78825e4d
commit + c7bcd4a8a9b22a4b28136e24069279cb93b1e43d
blob - 3f0acad98dcf313d352bced7558bb8947f8dafb4
blob + 6f62e68cd5861cb01b9919ad18402c72ca398dc2
--- gg.1
+++ 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
blob - 6b3830d1bd2e7ca7ac719d4abfc6efd5389b1cd7
blob + 6f2ee685dcdfbd69f83b1728ef2d081304b6054f
--- gg.c
+++ gg.c
@@ -428,6 +428,7 @@ main(int argc, char **argv)
 #endif
 
 	code = get(*argv);
-
-	return code < 20 || code >= 30;
+	if (code >= 20 && code < 30)
+		return 0;
+	return code;
 }