Skip to content

Commit 2ea1e8e

Browse files
committed
update readme
1 parent db80be5 commit 2ea1e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The following plugin options allow you to customize the default behavior of `hap
103103
- **showErrors**: `(boolean)`, default: `false` — by default, the plugin is disabled and keeps hapi's default error handling behavior
104104
- **template**: `(string)`, no default — provide the template name that you want to render with `h.view(template, errorData)`
105105
- **toTerminal**: `(boolean)`, default: `true` — print pretty errors to the terminal as well (enabled by default)
106-
- **links**: `(array)`, defaults to Google and Stack Overflow icons that are linked with the error message as the search term (enabled by default). Pass an empty array `[]` to disable the default links
106+
- **links**: `(array)` - default: linked SVG icons for Google and Stack Overflow - an array of callback functions that accept the error as a parameter. The callback functions should return the link to render below the error message. Pass an empty array `[]` to disable the default links
107107

108108
```js
109109
await server.register({

0 commit comments

Comments
 (0)