@corva/create-app 0.45.0-1 → 0.45.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/main.js +4 -4
  2. package/package.json +1 -1
package/lib/main.js CHANGED
@@ -250,15 +250,15 @@ export async function run() {
250
250
  try {
251
251
  await program.parseAsync(process.argv);
252
252
  } catch (e) {
253
- handleError(e);
253
+ handleError(program, e);
254
254
 
255
255
  process.exit(1);
256
256
  }
257
257
  }
258
258
 
259
- const handleError = (e) => {
259
+ const handleError = (program, e) => {
260
260
  if (e instanceof CommanderError) {
261
- handleCommanderError(e);
261
+ handleCommanderError(program, e);
262
262
 
263
263
  return;
264
264
  }
@@ -275,7 +275,7 @@ const handleError = (e) => {
275
275
  e.cause && console.error(chalk.red(e.cause));
276
276
  };
277
277
 
278
- const handleCommanderError = (e) => {
278
+ const handleCommanderError = (program, e) => {
279
279
  switch (e.code) {
280
280
  case 'commander.missingArgument': {
281
281
  const match = /error:.*'(.*)'/.exec(e.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.45.0-1",
3
+ "version": "0.45.0-2",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [