From 24c6373028960be21d68dfcffee8d389d93ee030 Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 25 Dec 2008 09:56:12 +0000 Subject: merges r20971 from trunk into ruby_1_9_1. * error.c, vm_dump.c: change message by rb_bug(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index b6ab8c4959..df4b0cc671 100644 --- a/error.c +++ b/error.c @@ -207,10 +207,17 @@ report_bug(const char *file, int line, const char *fmt, va_list args) if (fwrite(buf, 1, len, out) == len || fwrite(buf, 1, len, (out = stdout)) == len) { + fputs("[BUG] ", out); vfprintf(out, fmt, args); fprintf(out, "\n%s\n\n", ruby_description); + rb_vm_bugreport(); + + fprintf(out, + "[NOTE]\n" + "You may encounter a bug of Ruby interpreter. Bug reports are welcome.\n" + "For details: http://www.ruby-lang.org/bugreport.html\n\n"); } } -- cgit v1.2.3