Skip to content

Commit

Permalink
🎨(naming): add friendly name for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Mar 16, 2019
1 parent 4ceaa73 commit ed4e7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koex/onerror",
"version": "0.0.1",
"version": "0.0.2",
"description": "onerror for koa extend",
"main": "lib/index.js",
"module": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const createOnError = (options?: Options) => {
? ctx.logger.error(...args)
: console.error(...args));

return async function onerror(ctx: Context, next: () => Promise<void>) {
return async function koexOnError(ctx: Context, next: () => Promise<void>) {
try {
await next();
} catch (error) {
Expand Down

0 comments on commit ed4e7a3

Please sign in to comment.