An open API service indexing awesome lists of open source software.

https://github.com/formidablejs/pretty-errors

Pretty error reporting for Formidable.
https://github.com/formidablejs/pretty-errors

error-reporting exception-handler hacktoberfest youch

Last synced: about 2 months ago
JSON representation

Pretty error reporting for Formidable.

Awesome Lists containing this project

README

          

# Formidable Pretty Errors

Pretty error reporting for Formidable.


![Uh-oh!](https://raw.githubusercontent.com/formidablejs/pretty-errors/main/youch-img.png)

------

![npm](https://img.shields.io/npm/v/@formidablejs/pretty-errors)
![NPM](https://img.shields.io/npm/l/@formidablejs/pretty-errors)

## Requirements

* [@formidablejs/framework](https://www.npmjs.com/package/@formidablejs/framework): `>=0.5.0-alpha.1`

## Install

npm:

```bash
npm i @formidablejs/pretty-errors
```

yarn:

```bash
yarn add @formidablejs/pretty-errors
```

## Configuration

Add `PrettyErrorsServiceResolver` in the `bootstrap/resolvers.{imba,ts}`:

```js
import { PrettyErrorsServiceResolver } from '@formidablejs/pretty-errors'
...

export default [
...
PrettyErrorsServiceResolver
```

## Credits

This Formidable plugin uses [youch](https://github.com/poppinss/youch) under the hood.

## License

The Formidable framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).