diff options
Diffstat (limited to 'lua/examples/guestfs-lua.pod')
-rw-r--r-- | lua/examples/guestfs-lua.pod | 8 |
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 |