---
title: "didFinishRunningWithError:"
framework: automator
role: symbol
role_heading: Instance Method
path: "automator/amaction/didfinishrunningwitherror:"
---

# didFinishRunningWithError:

Sent by the action to itself when it has finished running asynchronously.

## Declaration

```occ
- (void) didFinishRunningWithError:(NSDictionary<NSString *,id> *) errorInfo;
```

## Parameters

- `errorInfo`: If an error occurred during asynchronous running of the action, upon return contains an instance of NSError that describes the problem.

## Discussion

Discussion An action that overrides runAsynchronously(withInput:) should invoke didFinishRunningWithError: on completion, so that Automator can resume running the workflow that the action is part of.

## See Also

### Deprecated

- [runWithInput:fromAction:error:](automator/amaction/runwithinput:fromaction:error:.md)
