Skip to content

Commit 6da4d5b

Browse files
committed
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.
1 parent 9d1cbab commit 6da4d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2463,7 +2463,7 @@ Error Main::setup2() {
24632463
}
24642464

24652465
if (err != OK || display_server == nullptr) {
2466-
ERR_PRINT("Unable to create DisplayServer, all display drivers failed.");
2466+
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).");
24672467
return err;
24682468
}
24692469

0 commit comments

Comments
 (0)