From 6da4d5bd609dbf03e1f5f0944cbcac0604f941f8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 21 Dec 2023 23:42:39 +0100 Subject: [PATCH] Suggest `--headless` CLI argument in DisplayServer not found error message This is helpful for newcomers setting up Godot on CI, as this provides automatic guidance as for why it doesn't run out of the box if there's no X11 server available. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 9bd2578eba6..4dcd92bcffc 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2463,7 +2463,7 @@ Error Main::setup2() { } if (err != OK || display_server == nullptr) { - ERR_PRINT("Unable to create DisplayServer, all display drivers failed."); + ERR_PRINT("Unable to create DisplayServer, all display drivers failed.\nUse \"--headless\" command line argument to run the engine in headless mode if this is desired (e.g. for continuous integration)."); return err; }