[Chinese-translation] README.chinese.md add 2.10

This commit is contained in:
matt_jin
2017-12-08 17:25:00 +08:00
parent 22083ac8da
commit f3f51708af

View File

@ -192,14 +192,14 @@
<br/><br/> <br/><br/>
## ![✔] 2.10 Catch unhandled promise rejections ## ![✔] 2.10 捕获未处理的promise rejections
**TL;DR:** Any exception thrown within a promise will get swallowed and discarded unless a developer didnt forget to explictly handle. Even if your code is subscribed to process.uncaughtException! Overcome this by registering to the event process.unhandledRejection **TL;DR:** 任何在promise中被抛出的异常将被收回和遗弃除非开发者没有忘记去明确的处理。即使您的代码调用的是process.uncaughtException解决这个问题可以注册到事件process.unhandledRejection
**Otherwise:** Your errors will get swallowed and leave no trace. Nothing to worry about **否则:** 您的错误将被回收,无踪迹可循。没有什么可以需要考虑。
🔗 [**Read More: catching unhandled promise rejection**](/sections/errorhandling/catchunhandledpromiserejection.md) 🔗 [**更多: 捕获未处理的promise rejection**](/sections/errorhandling/catchunhandledpromiserejection.md)
<br/><br/> <br/><br/>