> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/library-functions/debug/debug.fatalerror.md).

# Debug.FatalError

## `Debug.FatalError()`

Stoppt das Spiel und lässt ein Fenster mit der Fehlermeldung öffnen: "Error: SCRIPT: Debug.FatalError() called."

#### Rückgabewert

none

#### Beispiel

```lua
-- stoppt das spiel und wirft einen FE
Debug.FatalError()
```

#### Trivia

Wozu? Jetzt mal ernsthaft. Wozu?
