You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d363c4
Browse filesBrowse the repository at this point in the historyBrowse files
nicola
committed
fixing issues with errors and enabling custom error handlers
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,9 @@ In case the `settings` is not passed, then it will start with the following defa
78
78
suffixAcl:'.acl', // Suffix for acl files
79
79
suffixChanges:'.changes', // Suffix for acl files
80
80
suffixSSE:'.events', // Suffix for SSE files
81
-
proxy:false// Where to mount the proxy
81
+
proxy:false, // Where to mount the proxy
82
+
errorHandler:false, // function(err, req, res, next) to have a custom error handler
83
+
errorPages:false// specify a path where the error pages are
82
84
}
83
85
```
84
86
@@ -100,7 +102,7 @@ ldp.listen(3000, function() {
100
102
101
103
##### Advanced
102
104
103
-
You can integrate ldnode in your existing express app, by mounting the ldnode app on a specific path using `lnode(opts)`.
105
+
You can integrate ldnode in your existing express app, by mounting the ldnode app on a specific path using `lnode(opts)`. Have a look at see [further examples](https://github.com/linkeddata/ldnode/tree/master/examples)
0 commit comments