# Sandbox.ScriptSystem.LastError

```csharp
ScriptError LastError { get; set; }
```

The most recent source compilation, publication or startup failure, or null after a successful load.

Declared in [Sandbox.ScriptSystem](/api/Sandbox.ScriptSystem).
Assembly: `Sandbox.Engine`.
