Skip to content

Commit

Permalink
feat(cli-builder): added console.log on subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stradivario committed Dec 8, 2020
1 parent 73b881d commit a252177
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class SubscriptionService {
.subscribe(async ({ args, command, cwd }) => {
const cmd = Container.get(EnumToken)[command];
if (!cmd) {
console.log('Missing command');
throw new Error('Missing command');
}
try {
Expand All @@ -111,6 +112,7 @@ export class SubscriptionService {
data: JSON.stringify(data),
});
} catch (error) {
console.log(error);
await this.sendStatus({
label,
machineHash,
Expand Down

0 comments on commit a252177

Please sign in to comment.