From 1f25fec3537436bb40e74c115d52a3991820680c Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 26 May 2016 19:41:03 -0400 Subject: [PATCH] Add `condition` to errors for fastly config --- bin/lib/fastly-extended.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lib/fastly-extended.js b/bin/lib/fastly-extended.js index f54f231ae..ed3c324f6 100644 --- a/bin/lib/fastly-extended.js +++ b/bin/lib/fastly-extended.js @@ -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));