> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling.jobresult/jobresult/maperror.md).

# mapError

### JobResult.mapError

Namespace: `FsToolkit.ErrorHandling`

Function Signature:

```fsharp
('a -> 'b) -> Job<Result<'c, 'a>> -> Job<Result<'c, 'b>>
```

### Examples

#### Example 1

From the [JobResult.map](broken://pages/-LgCTgumsFnWdAHK8AT5#example-1) example, if we want to map the error part alone, we can do it as below:

```fsharp
// Job<Result<PostId>, string>
createPost createPostRequest
|> JobResult.mapError (fun (ex : exn) -> ex.Message)
```
