Skip to content

Commit

Permalink
Merge pull request #1 from alpeshvas/fix/formme
Browse files Browse the repository at this point in the history
Fix/formme
  • Loading branch information
alpeshvas authored Aug 18, 2018
2 parents 1d23ff7 + 82041e0 commit 75fee35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/*
example.js
test.js
test.js
.idea/*
5 changes: 4 additions & 1 deletion node-tourcms.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ TourCMS.prototype.makeRequest = function(a) {
parser.parseString(apiResponse, function (err, result) {
// If the method processes the response, give it back
// Otherwise call the original callback

if(!result) {
console.error("apiResponse for error"+apiResponse);
console.error(err)
}
if(typeof a.processor !== 'undefined')
a.processor(result.response, a.callback);
else
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"jshint": "^2.6.0",
"mocha": "^2.1.0"
},
"engines" : {
"node" : "*"
"engines": {
"node": "*"
},
"jshintConfig": {
"boss": true,
Expand Down

0 comments on commit 75fee35

Please sign in to comment.