Skip to content

Commit 7ec7b0a

Browse files
committed
docs: fixed usage
1 parent 8b677e1 commit 7ec7b0a

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
@@ -142,7 +142,7 @@ app.use(
142142
app.use(convert(flash()));
143143

144144
// override koa's undocumented error handler
145-
app.context.onerror = errorHandler({ cookiesKey });
145+
app.context.onerror = errorHandler(cookiesKey);
146146

147147
// use koa-404-handler
148148
app.use(koa404Handler);

0 commit comments

Comments
 (0)