ruby: Append newline character after printing exception in callback.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 25 Aug 2011 12:11:28 +0000 (13:11 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 25 Aug 2011 12:11:28 +0000 (13:11 +0100)
generator/generator_ruby.ml

index a21334a..4e12000 100644 (file)
@@ -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;