You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.Error('No existing streams for the latest version of function alias. If you want to view logs of a specific function version, please use --version to specify'));
87
-
}
88
-
returnlogStreamNames
89
-
});
69
+
if(version){
70
+
returnthis.provider
71
+
.request('CloudWatchLogs',
72
+
'describeLogStreams',
73
+
params,
74
+
this.options.stage,
75
+
this.options.region)
76
+
.then(reply=>{
77
+
if(!reply||_.isEmpty(reply.logStreams)){
78
+
thrownewthis.serverless.classes
79
+
.Error('No existing streams for the function alias');
returnBbPromise.reject(newthis.serverless.classes.Error('No existing streams for the latest version of function alias. If you want to view logs of a specific function version, please use --version to specify'));
87
+
}
88
+
returnlogStreamNames;
89
+
});
90
+
}
91
+
returnBbPromise.reject(newthis.serverless.classes.Error('Function alias not found.'));
0 commit comments