From a8807414e94c003b4327aebabf0dbcaa64af4cdb 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. Cherry picked from commit aae5bebe6878c01803653fae166c58b7217b6100. --- src/guestfs.pod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 1.8.3.1