---
title: errorOptions
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcommandbufferdescriptor/erroroptions
---

# errorOptions

The reporting configuration that indicates which information the GPU driver stores in a command buffer’s error property.

## Declaration

```swift
var errorOptions: MTLCommandBufferErrorOption { get set }
```

## Discussion

Discussion By default, a GPU driver doesn’t report additional error information. To create a command buffer that saves additional GPU runtime error information, add the encoderExecutionStatus option to this property. If the GPU encounters an error as it runs the command buffer, you can retrieve the additional information from the command buffer’s error property. note: Enabling the encoderExecutionStatus option can slightly reduce your app’s CPU runtime performance.

## See Also

### Configuring the command buffer

- [logState](metal/mtlcommandbufferdescriptor/logstate.md)
- [retainedReferences](metal/mtlcommandbufferdescriptor/retainedreferences.md)
- [MTLCommandBufferErrorOption](metal/mtlcommandbuffererroroption.md)
