mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Displayed information about failed endpoint deploys.
This commit is contained in:
parent
325f14cce1
commit
c77d6fb813
@ -263,11 +263,27 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
SCli.log('Successfully deployed endpoints in "' + evt.stage + '" to the following regions:');
|
||||
|
||||
// Display Methods & URLS
|
||||
for (let i = 0; i < Object.keys(evt.deployed).length; i++) {
|
||||
let region = evt.deployed[Object.keys(evt.deployed)[i]];
|
||||
SCli.log(Object.keys(evt.deployed)[i] + ' ------------------------');
|
||||
for (let j = 0; j < region.length; j++) {
|
||||
SCli.log(' ' + region[j].method + ' - ' + region[j].url);
|
||||
if( evt.deployed ){
|
||||
for (let i = 0; i < Object.keys(evt.deployed).length; i++) {
|
||||
let region = evt.deployed[Object.keys(evt.deployed)[i]];
|
||||
SCli.log(Object.keys(evt.deployed)[i] + ' ------------------------');
|
||||
for (let j = 0; j < region.length; j++) {
|
||||
SCli.log(' ' + region[j].method + ' - ' + region[j].url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( evt.failed ){
|
||||
SCli.log('FAILED to deploy endpoints in "' + evt.stage + '" to the following regions:');
|
||||
|
||||
// Display Methods & URLS
|
||||
for (let i = 0; i < Object.keys(evt.failed).length; i++) {
|
||||
let region = evt.failed[Object.keys(evt.failed)[i]];
|
||||
SCli.log(Object.keys(evt.failed)[i] + ' ------------------------');
|
||||
for (let j = 0; j < region.length; j++) {
|
||||
SCli.log(' ' + region[j].endpoint.method + ' - ' + region[j].endpoint.path + ': ' + region[j].message );
|
||||
SUtils.sDebug(region[j].stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user