Limit ADB error display for 10 seconds

Summary: So that error message won't displayed forever.

Reviewed By: lblasa

Differential Revision: D30991434

fbshipit-source-id: 2cb5c9f983e11e021acb818ad4e245530757eee4
This commit is contained in:
Wenhuan Li
2021-09-16 07:01:13 -07:00
committed by Facebook GitHub Bot
parent 918b48f979
commit eb04011887

View File

@@ -105,7 +105,7 @@ export default class CertificateProvider {
this.adb = getAdbClient(config).catch((e) => {
// make sure initialization failure is already logged
message.error({
duration: null,
duration: 10,
content:
'Failed to initialise ADB. Please check your Android settings, ANDROID_HOME and run the Setup Doctor. ' +
e,