summaryrefslogtreecommitdiffstats
path: root/lua/examples/guestfs-lua.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-20 17:32:37 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-20 17:32:37 +0000
commit1f984509952865632f434b4349f679a2e4a42935 (patch)
treee257801925a730b357836fd00795effa63e55d76 /lua/examples/guestfs-lua.pod
parent4749bff379862205dfa6c6ff94984711894c9eb0 (diff)
downloadlibguestfs-1f984509952865632f434b4349f679a2e4a42935.tar.gz
libguestfs-1f984509952865632f434b4349f679a2e4a42935.tar.xz
libguestfs-1f984509952865632f434b4349f679a2e4a42935.zip
lua: Attach __tostring functions exceptions.
This includes a test.
Diffstat (limited to 'lua/examples/guestfs-lua.pod')
-rw-r--r--lua/examples/guestfs-lua.pod8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/examples/guestfs-lua.pod b/lua/examples/guestfs-lua.pod
index 193a9a97..4c72899b 100644
--- a/lua/examples/guestfs-lua.pod
+++ b/lua/examples/guestfs-lua.pod
@@ -90,8 +90,12 @@ The C<errno> (corresponding to L<guestfs(3)/guestfs_last_errno>).
=back
-Note that some errors can also be thrown as plain strings. You
-need to check the type.
+These objects also have C<__tostring> functions attached to them
+so you can use C<tostring> (or implicit conversion) to convert them
+into printable strings.
+
+Note that the library also throws some errors as plain strings. You
+may need to check the type.
=head2 EVENTS