summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 02:33:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 02:33:54 +0000
commit28762db16695051adc211ebcd7bec45e6ecb6b80 (patch)
tree8efe5287cd72ba75336cefe9d838143b39ea46b4 /error.c
parentc22cd46d7b5589e19cb5da080663c2244596952c (diff)
downloadruby-28762db16695051adc211ebcd7bec45e6ecb6b80.tar.gz
ruby-28762db16695051adc211ebcd7bec45e6ecb6b80.tar.xz
ruby-28762db16695051adc211ebcd7bec45e6ecb6b80.zip
* error.c (report_bug): uses ruby_description.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/error.c b/error.c
index b8a98acfa..96e476ae2 100644
--- a/error.c
+++ b/error.c
@@ -23,7 +23,7 @@
#define EXIT_SUCCESS 0
#endif
-extern const char ruby_version[], ruby_release_date[], ruby_platform[];
+extern const char ruby_desription[];
static int
err_position_0(char *buf, long len, const char *file, int line)
@@ -208,11 +208,10 @@ 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) {
- rb_vm_bugreport();
fputs("[BUG] ", out);
vfprintf(out, fmt, args);
- fprintf(out, "\nruby %s (%s) [%s]\n\n",
- ruby_version, ruby_release_date, ruby_platform);
+ fprintf(out, "\n%s\n\n", ruby_description);
+ rb_vm_bugreport();
}
}