You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/12/14 06:21:10 UTC

[cordova-lib] 04/06: CB-13056 : added error message back in

This is an automated email from the ASF dual-hosted git repository.

steven pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git

commit 7ddf693d8cf9df6cd39a14e9c4b5e6a6f298ff67
Author: Audrey So <au...@apache.org>
AuthorDate: Tue Dec 12 14:08:55 2017 -0800

    CB-13056 : added error message back in
---
 src/cordova/util.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cordova/util.js b/src/cordova/util.js
index ac68bc2..09b69e5 100644
--- a/src/cordova/util.js
+++ b/src/cordova/util.js
@@ -503,5 +503,9 @@ function getPlatformApiFunction (libDir, platform) {
         }
     }
 
+    if (!PlatformApi) {
+        throw new Error('Your ' + platform + ' platform does not have Api.js');
+    }
+
     return PlatformApi;
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@cordova.apache.org" <co...@cordova.apache.org>.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org