From: Richard W.M. Jones Date: Wed, 3 Nov 2010 18:01:48 +0000 (+0000) Subject: docs: Clarify, not every function that returns int returns -1 for errors. X-Git-Tag: 1.6.1~13 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=a8807414e94c003b4327aebabf0dbcaa64af4cdb;p=libguestfs.git docs: Clarify, not every function that returns int returns -1 for errors. Cherry picked from commit aae5bebe6878c01803653fae166c58b7217b6100. --- diff --git a/src/guestfs.pod b/src/guestfs.pod index 50e9f50..83dc683 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -888,8 +888,9 @@ 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. You can get additional information on +API functions can return errors. For example, almost all functions +that return C will return C<-1> to indicate an error. You can +get additional information on errors by calling L and/or by setting up an error handler with L.