Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Add option to pass a function for rendering error handling #79

Merged
merged 2 commits into from
May 20, 2019
Merged

Add option to pass a function for rendering error handling #79

merged 2 commits into from
May 20, 2019

Conversation

Menci
Copy link
Contributor

@Menci Menci commented Mar 21, 2019

Currently this library only print the rendering error message with console.log. This PR add a option config.errorHandler to let developers do something on error, such as show stylized error message on the page.

The current behavior is preserved via the default value of config.errorHandler.

@Menci
Copy link
Contributor Author

Menci commented Mar 21, 2019

Oh, sorry. I broke something.

@Menci
Copy link
Contributor Author

Menci commented May 2, 2019

@pkra ping

@pkra
Copy link
Owner

pkra commented May 20, 2019

@Menci could you rebase and add a test?

@Menci
Copy link
Contributor Author

Menci commented May 20, 2019

Test added. Commits merged into one and force-pushed. Conflits resolved.

@pkra pkra merged commit 433666e into pkra:master May 20, 2019
@pkra
Copy link
Owner

pkra commented May 20, 2019

Awesome -- thanks so much!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants