~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/main.cc

  • Committer: bedouin
  • Date: 2009-05-02 15:25:07 UTC
  • Revision ID: git-v1:8821cd287f6a105c1ec2058ed433884f4795a6c9
- Implement feature request #2782462: "Add buildtype and OS reminder to crash
  messages"
- Add buildtype in other places where it makes sense as well

git-svn-id: https://widelands.svn.sourceforge.net/svnroot/widelands/trunk@3982 37b2a8de-5219-0410-9f54-a31bc463ab9c

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
//config.h must be included first of all!
21
 
#include "build_id.h"
 
21
#include "build_info.h"
22
22
 
23
23
#include "wexception.h"
24
24
#include "wlapplication.h"
61
61
                cerr
62
62
                        << "\nCaught exception (of type '" << typeid(e).name()
63
63
                        << "') in outermost handler!\nThe exception said: " << e.what()
64
 
                        << "\n\nThis should not happen. Please file a bug report on version: "
65
 
                        << build_id() << ".\n\n" << flush;
 
64
                        << "\n\nThis should not happen. Please file a bug report on version "
 
65
                        << build_id() << "(" << build_type() << ")" << ".\n"
 
66
                        << "and remember to specify your operating system.\n\n" << flush;
66
67
                delete g_app;
67
68
 
68
69
                return 1;
70
71
                cerr
71
72
                        << "\nCaught exception (of type '" << typeid(e).name()
72
73
                        << "') in outermost handler!\nThe exception said: " << e.what()
73
 
                        << "\n\nThis should not happen. Please file a bug report on version: "
74
 
                        << build_id() <<".\n\n" << flush;
 
74
                        << "\n\nThis should not happen. Please file a bug report on version "
 
75
                        << build_id() << "(" << build_type() << ")" <<".\n"
 
76
                        << "and remember to specify your operating system.\n\n" << flush;
75
77
                delete g_app;
76
78
 
77
79
                return 1;