diff --git a/lib/plugins/platform/platform.js b/lib/plugins/platform/platform.js index 674095ea253..5926a9b113b 100644 --- a/lib/plugins/platform/platform.js +++ b/lib/plugins/platform/platform.js @@ -94,7 +94,13 @@ class Platform { } `, variables: { name: this.serverless.service.service }, - }).then(response => response.data); + }).then(response => { + this.serverless.cli.log('Successfully archived your service on the Serverless Platform'); + return response.data + }).catch((err) => { + this.serverless.cli.log('Failed to archived your service on the Serverless Platform'); + throw new this.serverless.classes.Error(err.message); + }); } publishServiceRequest(service, client) {