nico-martin / spa-server

"SPA Server" is a NodeJS library that starts a production ready NodeJS Webserver, that mostly serves static files and also allows you to manipulate any non-static response (for example HTTP Headers and meta tags).
MIT License
0 stars 0 forks source link

Add onError callback #3

Closed nico-martin closed 4 years ago

nico-martin commented 4 years ago

should be possible to pass a callback if an error happened

{
  ...config,
  onError: (error) => console.log(error) 
}