cloudcms-server 4.0.0-beta.14 → 4.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util/cloudcms.js +2 -2
- package/util/request.js +2 -1
package/package.json
CHANGED
package/util/cloudcms.js
CHANGED
|
@@ -409,7 +409,7 @@ exports = module.exports = function()
|
|
|
409
409
|
"headers": headers,
|
|
410
410
|
"responseType": "stream"
|
|
411
411
|
}, function(err, response) {
|
|
412
|
-
|
|
412
|
+
|
|
413
413
|
if (err) {
|
|
414
414
|
closeWriteStream(tempStream);
|
|
415
415
|
return cb(err);
|
|
@@ -750,7 +750,7 @@ exports = module.exports = function()
|
|
|
750
750
|
|
|
751
751
|
if (err) {
|
|
752
752
|
|
|
753
|
-
if (err.
|
|
753
|
+
if (err.status === 404) {
|
|
754
754
|
return callback();
|
|
755
755
|
}
|
|
756
756
|
|
package/util/request.js
CHANGED
|
@@ -117,7 +117,8 @@ module.exports = function(config, callback)
|
|
|
117
117
|
|
|
118
118
|
return axios.request(requestConfig).then(function(response) {
|
|
119
119
|
callback(null, response, response.data);
|
|
120
|
-
}
|
|
120
|
+
}).catch(function(error) {
|
|
121
121
|
callback(error);
|
|
122
122
|
});
|
|
123
|
+
|
|
123
124
|
};
|