# hasErrors

> Indicates whether the shader has compilation errors (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public bool hasErrors { get; }
```
