Skip to content

Commit

Permalink
Fix broken link in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sjxg authored Apr 11, 2019
1 parent 47b0a1b commit 3b349bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/README-zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function fileFilter (req, file, cb) {

当遇到一个错误,multer 将会把错误发送给 express。你可以使用一个比较好的错误展示页 ([express标准方式](http://expressjs.com/guide/error-handling.html))。

如果你想捕捉 multer 发出的错误,你可以自己调用中间件程序。如果你想捕捉 [Multer 错误](https://github.com/expressjs/multer/blob/master/lib/make-error.js#L1-L9),你可以使用 `multer` 对象下的 `MulterError` 类 (即 `err instanceof multer.MulterError`)。
如果你想捕捉 multer 发出的错误,你可以自己调用中间件程序。如果你想捕捉 [Multer 错误](https://github.com/expressjs/multer/blob/master/lib/multer-error.js),你可以使用 `multer` 对象下的 `MulterError` 类 (即 `err instanceof multer.MulterError`)。

```javascript
var multer = require('multer')
Expand Down

0 comments on commit 3b349bb

Please sign in to comment.