Merge pull request #27 from strongloop/clear_example
Make the example more clear
This commit is contained in:
commit
613c7209d3
|
@ -41,7 +41,10 @@ var app = express();
|
|||
// setup your routes
|
||||
// `options` are set to default values. For more info, see `options` below.
|
||||
// app.use(errorHandler({ /* options, see below */ }));
|
||||
app.use(errorHandler({debug:true, log:true}));
|
||||
app.use(errorHandler({
|
||||
debug: app.get('env') === 'development',
|
||||
log: true,
|
||||
}));
|
||||
|
||||
app.listen(3000);
|
||||
```
|
||||
|
@ -54,6 +57,8 @@ In LoopBack applications, add the following entry to your
|
|||
"final:after": {
|
||||
"strong-error-handler": {
|
||||
"params": {
|
||||
"debug": false,
|
||||
"log": true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue