Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
stopRead error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
umcsdon authored and timwindsor committed Jul 15, 2015
1 parent 7b320e1 commit 66e572e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions www/blackberry10/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,27 @@ var stopRead = function stopRead (succ, fail) {
if (gotCode == false) {
gotCode = true;
succ(data);
stopRead(function(data){}, function(data){});
stopRead(
function(result){
// console.log("stopRead success!");
},
function(err){
console.log("stopRead Error : " + err.error + " description : "+ err.description);
}
);
}
};

var failure = function (data) {
fail(data);
stopRead(function(data){}, function(data){});
stopRead(
function(result){
// console.log("stopRead success!");
},
function(err){
console.log("stopReadError : " + err.error + " description : " + err.description);
}
);
};

startRead(success, failure);
Expand Down

0 comments on commit 66e572e

Please sign in to comment.