summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 13:39:16 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 13:39:16 +0000
commit8d1689508d8b9b45decd4dd0507d46ba12dfce2e (patch)
treebbde4d45221afc4cc4e3203e805cb688a4c79269 /error.c
parent155149109a9c6d6ae79bf40398cb51e8883dad26 (diff)
* error.c, vm_dump.c: change message by rb_bug().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20971 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");
}
}