mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-05-18 00:32:33 -04:00
Use the condition statement for the error log
This commit is contained in:
parent
1f25fec353
commit
affec666d2
1 changed files with 2 additions and 2 deletions
|
@ -65,14 +65,14 @@ module.exports = function (apiKey, serviceId) {
|
||||||
if (err && err.statusCode === 404) {
|
if (err && err.statusCode === 404) {
|
||||||
this.request('POST', postUrl, condition, function (err, response) {
|
this.request('POST', postUrl, condition, function (err, response) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb('Failed while inserting condition \"' + condition + '\": ' + err);
|
return cb('Failed while inserting condition \"' + condition.statement + '\": ' + err);
|
||||||
}
|
}
|
||||||
return cb(null, response);
|
return cb(null, response);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb('Failed to update condition \"' + condition + '\": ' + err);
|
return cb('Failed to update condition \"' + condition.statement + '\": ' + err);
|
||||||
}
|
}
|
||||||
return cb(null, response);
|
return cb(null, response);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue