# Helpers.createLoadError()

```ts
createLoadError(container: HTMLElement, options: LoadErrorOptions): LoadErrorCard
```

The load-failure card: plain language first ("The PDF appears to be damaged or incomplete."), the `SDKError` code second and small (the error's own message is its tooltip), then **Try another file** / **Retry**.

- Kind: static method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `HTMLElement` | Where the card is mounted. |
| `options` | `LoadErrorOptions` | `{ error, onRetry?, onChooseAnother?, locale?, icons? }`. `error` is what the load rejected with (an `SDKError`, or anything else); `onRetry()` and `onChooseAnother()` back the **Retry** and **Try another file** buttons; `locale` and `icons` as for `createDropZone`. |

Returns `LoadErrorCard`: `{ element, destroy() }`.

```ts
const card = createLoadError(container, {
  error: err,
  onRetry: () => openPdf(file),
  onChooseAnother: () => zone.open(),
});
```

Part of [Helpers](https://kernstra.com/docs/web-sdk/api/helpers) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/helpers/createloaderror
