mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-14 15:09:59 -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) {
|
||||
this.request('POST', postUrl, condition, function (err, response) {
|
||||
if (err) {
|
||||
return cb('Failed while inserting condition \"' + condition + '\": ' + err);
|
||||
return cb('Failed while inserting condition \"' + condition.statement + '\": ' + err);
|
||||
}
|
||||
return cb(null, response);
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (err) {
|
||||
return cb('Failed to update condition \"' + condition + '\": ' + err);
|
||||
return cb('Failed to update condition \"' + condition.statement + '\": ' + err);
|
||||
}
|
||||
return cb(null, response);
|
||||
}.bind(this));
|
||||
|
|
Loading…
Reference in a new issue