Skip to content

Commit

Permalink
fixup! fixup! Casperify verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Sep 6, 2022
1 parent de4b506 commit 61c206a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions bin/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const handleError = (message, error) => {
};

(async () => {
setupLogger({ log: 'debug' });
try {
await yargs
.env('CML')
Expand Down Expand Up @@ -151,9 +152,11 @@ const handleError = (message, error) => {
const { telemetryEvent } = yargs.parsed.argv;
await send({ event: telemetryEvent });
} catch (err) {
const { telemetryEvent } = yargs.parsed.argv;
const event = { ...telemetryEvent, error: err.message };
await send({ event });
if (yargs.parsed.argv) {
const { telemetryEvent } = yargs.parsed.argv;
const event = { ...telemetryEvent, error: err.message };
await send({ event });
}
winston.error({ err });
process.exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion bin/cml/runner.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { options, handler } = require('./runner/start');
const { options, handler } = require('./runner/launch');

exports.command = 'runner';
exports.description = 'Manage self-hosted (cloud & on-premise) CI runners';
Expand Down

2 comments on commit 61c206a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@0x2b3bfa0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.