Skip to content

Commit

Permalink
added missing desciption for @error
Browse files Browse the repository at this point in the history
  • Loading branch information
calidion committed Jan 27, 2021
1 parent 1edbe16 commit e3f5b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Decorators will be enriched over time. Currently aex provides 6 most important d
3. `@body` defines your way to parse your body.
4. `@query` extract http query into `req.query` and `scope.query`;
5. `@filter` fiters and validates data from http requests, takes `body`, `params` and `query` types only.
6. `@error` defines scoped errors

## @http

Expand Down Expand Up @@ -244,7 +245,7 @@ class User {
}
})
public road(_req: any, res: any, scope: any) {
const {ILoveYou} = scope.error;
const { ILoveYou } = scope.error;
// throw new ILoveYou('en-US');
// throw new ILoveYou('zh-CN');
res.end("User Error!");
Expand Down

0 comments on commit e3f5b64

Please sign in to comment.