You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/10/13 20:45:54 UTC

[cordova-plugin-device] branch master updated: Log error to console, not to dialog box (#109)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7c0c142  Log error to console, not to dialog box (#109)
7c0c142 is described below

commit 7c0c1424bbb8b9b0e019fad7589175c69e1d0f62
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Sun Oct 13 22:45:46 2019 +0200

    Log error to console, not to dialog box (#109)
    
    * Log error to console, not to dialog box
    
    * Remove obsolete dependency on cordova/utils
---
 www/device.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/device.js b/www/device.js
index 41ed04f..2fd729c 100644
--- a/www/device.js
+++ b/www/device.js
@@ -21,7 +21,6 @@
 
 var argscheck = require('cordova/argscheck');
 var channel = require('cordova/channel');
-var utils = require('cordova/utils');
 var exec = require('cordova/exec');
 var cordova = require('cordova');
 
@@ -64,7 +63,7 @@ function Device () {
             channel.onCordovaInfoReady.fire();
         }, function (e) {
             me.available = false;
-            utils.alert('[ERROR] Error initializing Cordova: ' + e);
+            console.error('[ERROR] Error initializing cordova-plugin-device: ' + e);
         });
     });
 }


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