git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01d613a
)
docs: Clarify no additional error available from guestfs_create.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 3 Nov 2010 18:33:31 +0000
(18:33 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 3 Nov 2010 18:52:45 +0000
(18:52 +0000)
src/guestfs.pod
patch
|
blob
|
history
diff --git
a/src/guestfs.pod
b/src/guestfs.pod
index
b21a25d
..
9717543
100644
(file)
--- a/
src/guestfs.pod
+++ b/
src/guestfs.pod
@@
-920,6
+920,12
@@
Out of memory errors are handled differently. The default action is
to call L<abort(3)>. If this is undesirable, then you can set a
handler using L</guestfs_set_out_of_memory_handler>.
to call L<abort(3)>. If this is undesirable, then you can set a
handler using L</guestfs_set_out_of_memory_handler>.
+L</guestfs_create> returns C<NULL> if the handle cannot be created,
+and because there is no handle if this happens there is no way to get
+additional error information. However L</guestfs_create> is supposed
+to be a lightweight operation which can only fail because of
+insufficient memory (it returns NULL in this case).
+
=head2 guestfs_last_error
const char *guestfs_last_error (guestfs_h *g);
=head2 guestfs_last_error
const char *guestfs_last_error (guestfs_h *g);