From cfd6c490caf6c4998c66caf207d20d50572a0150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Wed, 6 Jul 2022 16:59:39 +0800 Subject: [PATCH] chore: update error tips --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index c9ed513..98208c4 100644 --- a/src/index.js +++ b/src/index.js @@ -84,6 +84,9 @@ class UniID { _getPlatformConfig () { const appConfig = this._getAppConfig() + if (!appConfig) { + throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`) + } if (this._clientInfo.platform === 'app-plus') { this._clientInfo.platform = 'app' } -- GitLab