~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/ui_fsmenu/main.cc

  • Committer: The Widelands Bunnybot
  • Date: 2025-02-05 18:23:09 UTC
  • Revision ID: bunnybot@widelands.org-20250205182309-2g424fbzhfwykt6y
install-dependencies.sh: Don't error on MacOS when all dependencies already installed. (CB #4983 / GH #6623)

Co-authored-by: Malte Dostal <malte.dostal@gmail.com>

(by bunnybot)
d4c9023cc7b76bdc01bb80fddee5f8fd407496eb

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "base/random.h"
30
30
#include "base/time_string.h"
31
31
#include "base/warning.h"
32
 
#include "base/wexception.h"
33
32
#include "build_info.h"
34
33
#include "editor/editorinteractive.h"
35
34
#include "graphic/graphic.h"
269
268
                        return;  // We only get here though normal termination by the user.
270
269
                } catch (const WLWarning& e) {
271
270
                        // WLWarning is reserved for bad circumstances that are (most likely) not a bug.
272
 
                        // But they still should make the regression test suite fail.
273
 
                        if (g_fail_on_errors) {
274
 
                                log_warn("Something went wrong. The error message is:\n%s", e.what());
275
 
                                abort();
276
 
                        }
277
271
                        show_messagebox(e.title(), e.what());
278
272
                } catch (const std::exception& e) {
279
273
                        // This is the outermost wrapper within the GUI and should only very rarely be reached.
280
274
                        // Most likely we got here through a bug in Widelands.
281
 
                        if (g_fail_on_errors) {
282
 
                                log_err("An error has occured. The error message is:\n%s", e.what());
283
 
                                log_err("Please report this problem to help us improve Widelands.");
284
 
                                abort();
285
 
                        }
286
275
                        show_messagebox(
287
276
                           _("Error!"),
288
277
                           format(