Skip to content

Commit

Permalink
print out success and failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Sep 20, 2017
1 parent e29b633 commit d870afe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/plugins/platform/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d870afe

Please sign in to comment.