Permalink
Browse files

error.c: Crash Report log

* error.c (REPORTBUG_MSG): mention about Crash Report log file on
  MacOS X.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 4cac2f4 commit 20061dad6ada92327b64f0dcf4866eeaaca8744e @nobu nobu committed Feb 12, 2014
Showing with 7 additions and 1 deletion.
  1. +6 −1 error.c
  2. +1 −0 test/ruby/test_rubyoptions.rb
View
7 error.c
@@ -43,12 +43,17 @@ VALUE rb_eEINPROGRESS;
extern const char ruby_description[];
-#define REPORTBUG_MSG \
+static const char REPORTBUG_MSG[] =
"[NOTE]\n" \
"You may have encountered a bug in the Ruby interpreter" \
" or extension libraries.\n" \
"Bug reports are welcome.\n" \
+ ""
+#if defined __APPLE__
+ "Don't forget to include the above Crash Report log file.\n"
+#endif
"For details: http://www.ruby-lang.org/bugreport.html\n\n" \
+ ;
static const char *
rb_strerrno(int err)
View
1 test/ruby/test_rubyoptions.rb
@@ -527,6 +527,7 @@ module SEGVTest
\[NOTE\]\n
You\smay\shave\sencountered\sa\sbug\sin\sthe\sRuby\sinterpreter\sor\sextension\slibraries.\n
Bug\sreports\sare\swelcome.\n
+ (?:.*\n)?
For\sdetails:\shttp:\/\/.*\.ruby-lang\.org/.*\n
\n
(?:#{additional})

0 comments on commit 20061da

Please sign in to comment.