mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Add condition
to errors for fastly config
This commit is contained in:
parent
a4f15f4ec8
commit
1f25fec353
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: ' + err);
|
return cb('Failed while inserting condition \"' + condition + '\": ' + err);
|
||||||
}
|
}
|
||||||
return cb(null, response);
|
return cb(null, response);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb('Failed to update condition: ' + err);
|
return cb('Failed to update condition \"' + condition + '\": ' + err);
|
||||||
}
|
}
|
||||||
return cb(null, response);
|
return cb(null, response);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
Loading…
Reference in a new issue