From aae5bebe6878c01803653fae166c58b7217b6100 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 3 Nov 2010 18:01:48 +0000 Subject: [PATCH] docs: Clarify, not every function that returns int returns -1 for errors. --- src/guestfs.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guestfs.pod b/src/guestfs.pod index da03128..dd06880 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -877,8 +877,8 @@ This closes the connection handle and frees up all resources used. =head1 ERROR HANDLING -The convention in all functions that return C is that they return -C<-1> to indicate an error. +API functions can return errors. For example, almost all functions +that return C will return C<-1> to indicate an error. Additional information is available for errors: an error message string and optionally an error number (errno) if the thing that failed -- 1.8.3.1