---
title: error()
framework: securityinterface
role: symbol
role_heading: Instance Method
path: securityinterface/sfkeychainsavepanel/error()
---

# error()

Returns the last error encountered by the keychain save panel.

## Declaration

```swift
func error() -> (any Error)!
```

## See Also

### Returning Information from the Sheet or Panel

- [keychain()](securityinterface/sfkeychainsavepanel/keychain().md)
