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
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
-
});
69
+
if(!version){
70
+
returnBbPromise.reject(newthis.serverless.classes.Error('Function alias not found.'));
90
71
}
91
-
returnBbPromise.reject(newthis.serverless.classes.Error('Function alias not found.'));
92
-
});
93
72
73
+
returnthis.provider
74
+
.request('CloudWatchLogs',
75
+
'describeLogStreams',
76
+
params,
77
+
this.options.stage,
78
+
this.options.region)
79
+
.then(reply=>{
80
+
if(!reply||_.isEmpty(reply.logStreams)){
81
+
thrownewthis.serverless.classes
82
+
.Error('No existing streams for the function alias');
returnBbPromise.reject(newthis.serverless.classes.Error('No existing streams for this function version. If you want to view logs of a specific function version, please use --version'));
0 commit comments