diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-08-15 02:02:43 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-08-15 02:02:43 -0400 |
commit | 1dafa353abcec07bafbdb7aa732566263bcb3841 (patch) | |
tree | f0b63a1444e0e4ab6fa31bf57936a02a46ae6ca8 | |
parent | 0cd90c0d10aafaa61cd7db4ab638841cf47ae950 (diff) | |
download | crawl-ref-1dafa353abcec07bafbdb7aa732566263bcb3841.tar.gz crawl-ref-1dafa353abcec07bafbdb7aa732566263bcb3841.zip |
friendlier crash message
-rw-r--r-- | crawl-ref/source/dbg-asrt.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/dbg-asrt.cc b/crawl-ref/source/dbg-asrt.cc index 2d1375c6aa..b68d5681e8 100644 --- a/crawl-ref/source/dbg-asrt.cc +++ b/crawl-ref/source/dbg-asrt.cc @@ -19,6 +19,7 @@ #include "directn.h" #include "dlua.h" #include "env.h" +#include "files.h" #include "initfile.h" #include "itemname.h" #include "jobs.h" @@ -647,7 +648,12 @@ void do_crash_dump() if (!crawl_state.test && !_assert_msg.empty()) fprintf(stderr, "\n%s", _assert_msg.c_str()); - fprintf(stderr, "\nWriting crash info to %s\n", name); + fprintf(stderr, + "\n\nWe crashed! This is likely due to a bug in Crawl. " + "Please submit a bug report at https://crawl.develz.org/mantis/ " + "and include the crash report (%s), your save file (%s), and a " + "description of what you were doing when this crash occurred.\n\n", + name, get_savedir_filename(you.your_name).c_str()); errno = 0; FILE* file = crawl_state.test ? stderr : freopen(name, "a+", stderr); |