diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-24 13:39:16 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-24 13:39:16 +0000 |
commit | 81361e6ada9326034c8be24ecc2e44fa9033b318 (patch) | |
tree | bbde4d45221afc4cc4e3203e805cb688a4c79269 /error.c | |
parent | 08d2ecedd9a4bba67ba81ba04f3b7160a508871c (diff) | |
download | ruby-81361e6ada9326034c8be24ecc2e44fa9033b318.tar.gz ruby-81361e6ada9326034c8be24ecc2e44fa9033b318.tar.xz ruby-81361e6ada9326034c8be24ecc2e44fa9033b318.zip |
* error.c, vm_dump.c: change message by rb_bug().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); } } |