From f3f51708afe696f1028d0b0ffb677923bb4ddb7f Mon Sep 17 00:00:00 2001 From: matt_jin Date: Fri, 8 Dec 2017 17:25:00 +0800 Subject: [PATCH] [Chinese-translation] README.chinese.md add 2.10 --- README.chinese.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.chinese.md b/README.chinese.md index 60d81363..5bcdccc8 100644 --- a/README.chinese.md +++ b/README.chinese.md @@ -192,14 +192,14 @@

-## ![✔] 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 didn’t 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)