---
title: error
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/skdownload/error
---

# error

The error that prevented the content from being downloaded.

## Declaration

```swift
var error: (any Error)? { get }
```

## Mentioned in

Unlocking purchased content

## Discussion

Discussion The value of this property is valid only when the downloadState property is set to SKDownloadState.failed.

## See Also

### Accessing a Completed Download

- [contentURL](storekit/skdownload/contenturl.md)
