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