Instead of showing connman error for invalid arguments when trying to connect to an encrypts AP, now it shows "Password incorrect" which is more user friendly.
Change-Id: I0f92f1c8cc1d458c2b98b2c0d46c2136eef92dc9
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
$.mobile.changePage('#page_connman');
}
}, function(e) {
- showMsg('Error', 'Connect service failed: ' + e);
+ showMsg('Error', 'Connect failed: ' + e);
});
});
}
/* error */
hideSpinner();
if (error_cb) {
- error_cb(e);
+ if (e.indexOf('Invalid arguments') >= 0) {
+ error_cb('Password incorrect');
+ } else {
+ error_cb(e);
+ }
}
});
}