We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aedcb9a + 7777cce commit 1295ebcCopy full SHA for 1295ebc
apps/cli/src/commands/invoice.ts
@@ -376,12 +376,21 @@ export class Invoice implements Command {
376
await this.doRun(configOptions);
377
return 0;
378
} catch (e) {
379
- console.error(
380
- gtx._x('{programName}: {error}', {
381
- programName: Package.getName(),
382
- error: e,
383
- }),
384
- );
+ if (e.ajv) {
+ console.error(
+ gtx._x('{programName}: fatal error:', {
+ programName: Package.getName(),
+ }),
+ e.errors,
385
+ );
386
+ } else {
387
388
+ gtx._x('{programName}: {error}', {
389
390
+ error: e,
391
392
393
+ }
394
395
return 1;
396
}
0 commit comments