From: Richard W.M. Jones Date: Thu, 25 Aug 2011 12:11:28 +0000 (+0100) Subject: ruby: Append newline character after printing exception in callback. X-Git-Tag: 1.12.5~9 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=33bb658c383d3ae5877f763b0d34f15a82b4f86e;p=libguestfs.git ruby: Append newline character after printing exception in callback. (cherry picked from commit 0cd5b9ac15c62eb570ec74d19b4aebde4990fd82) --- diff --git a/generator/generator_ruby.ml b/generator/generator_ruby.ml index a21334a..4e12000 100644 --- a/generator/generator_ruby.ml +++ b/generator/generator_ruby.ml @@ -264,7 +264,7 @@ ruby_event_callback_handle_exception (VALUE not_used, VALUE exn) /* Callbacks aren't supposed to throw exceptions. The best we * can do is to print the error. */ - fprintf (stderr, \"libguestfs: exception in callback: %%s\", + fprintf (stderr, \"libguestfs: exception in callback: %%s\\n\", StringValueCStr (exn)); return Qnil;