Commit 7d80fa6c authored by Sina Abadi's avatar Sina Abadi

Remove process exit

parent c9b43362
...@@ -43,9 +43,8 @@ var basicRequest = function (url, apiKey, method, body, callback) { ...@@ -43,9 +43,8 @@ var basicRequest = function (url, apiKey, method, body, callback) {
return reject(err) return reject(err)
} }
if (httpResponse.statusCode !== 200) { if (httpResponse.statusCode !== 200) {
console.log('**********************') console.log('******ONE SIGNAL ERROR********')
console.log(JSON.stringify(data, null, 2)) console.log(JSON.stringify(data, null, 2))
process.exit(1)
console.log('**********************') console.log('**********************')
} }
callback && callback(err, httpResponse, data) callback && callback(err, httpResponse, data)
......
{ {
"name": "onesignal-node", "name": "onesignal-node",
"version": "2.0.2", "version": "2.0.3",
"description": "A Node.js Library for OneSignal push notification service", "description": "A Node.js Library for OneSignal push notification service",
"main": "./lib/index.js", "main": "./lib/index.js",
"scripts": { "scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment