Skip to content

Commit

Permalink
Add better ouput when memprof fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ice799 committed Jun 12, 2010
1 parent ce198a2 commit b7badf2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/memprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,11 @@ init_memprof_config_extended() {
/* who knows what could happen */
if (TYPE(ruby_build_info) == T_STRING)
fprintf(stderr, "%s\n", StringValuePtr(ruby_build_info));
errx(EX_SOFTWARE, "Memprof does not have enough data to run. Please email this output to bugs@memprof.com");

fprintf(stderr, "\nTry installing debug symbols (apt-get install libruby1.8-dbg or similar), or using a "
"Ruby built with RVM (http://rvm.beginrescueend.com/)\n\n");

errx(EX_SOFTWARE, "If that doesn't work, please email this output to bugs@memprof.com");
}
}

Expand Down

0 comments on commit b7badf2

Please sign in to comment.