Fix markdown formatting in README

This commit is contained in:
Miroslav Bajtoš 2017-03-22 09:49:22 +01:00 committed by GitHub
parent 37cb2ce938
commit 095ee9d1bd
1 changed files with 15 additions and 15 deletions

View File

@ -171,34 +171,34 @@ To migrate a LoopBack 2.x application to use `strong-error-handler`:
"errorHandler": {
"disableStackTrace": false
}</pre>
and replace it with:
<pre>
"remoting": {
...,
"rest": {
"handleErrors": false
}</pre>
and replace it with:
<pre>
"remoting": {
...,
"rest": {
"handleErrors": false
}</pre>
1. In `server/middleware.json`, remove:
<pre>
"final:after": {
"loopback#errorHandler": {}
}</pre>
and replace it with:
and replace it with:
<pre>
"final:after": {
"strong-error-handler": {}
}</pre>
1. Delete `server/middleware.production.json`.
1. Create `server/middleware.development.json` containing:
<pre>
"final:after": {
"strong-error-handler": {
"params": {
"debug": true,
"log": true
<pre>
"final:after": {
"strong-error-handler": {
"params": {
"debug": true,
"log": true
}
}
}
}
</pre>
For more information, see