You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by kn...@apache.org on 2019/03/12 07:06:11 UTC
[cordova-plugin-file] branch travis_tests updated: show error log
by toString for safari debug
This is an automated email from the ASF dual-hosted git repository.
knaito pushed a commit to branch travis_tests
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-file.git
The following commit(s) were added to refs/heads/travis_tests by this push:
new 3397cd8 show error log by toString for safari debug
3397cd8 is described below
commit 3397cd8ccc964cd55267fdf98fa609e706450cf0
Author: knaito <kn...@asial.co.jp>
AuthorDate: Tue Mar 12 16:05:48 2019 +0900
show error log by toString for safari debug
---
tests/tests.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/tests.js b/tests/tests.js
index 5511f67..4cc0ab9 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -327,7 +327,11 @@ exports.defineAutoTests = function () {
window.customLog('log', 'step 1C');
var tx = mydb.transaction([storeName], 'readwrite');
window.customLog('log', 'step 1C2');
- tx.objectStore(storeName).put(myentry, mypath);
+ try {
+ tx.objectStore(storeName).put(myentry, mypath);
+ } catch (e) {
+ window.customLog('log', e.toString());
+ }
window.customLog('log', 'step 1C3');
tx.onabort = function (err) {
window.customLog('log', 'db abort!!!');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org