summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:56:12 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:56:12 +0000
commit24c6373028960be21d68dfcffee8d389d93ee030 (patch)
tree72854837d7d2cdc07520a78fc5c36e71de1faa26 /error.c
parent8bfc3df0bb56a72b6c17654b362310c4d28a171e (diff)
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
Diffstat (limited to 'error.c')
-rw-r--r--error.c7
1 files changed, 7 insertions, 0 deletions
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");
}
}