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

# error

The error value that indicates the reason a promotional image failed to load.

## Declaration

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

## Discussion

Discussion The error value is nil while the icon is loading, if the icon successfully loads, or if you haven’t set up a promotional image for the in-app purchase in App Store Connect. Use this value as a convenience to access the error value in code that assumes you’ve set up a promotional image.
