aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/cli.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/sol-doc/src/cli.ts b/packages/sol-doc/src/cli.ts
index b29a89147..eb0f00bf6 100644
--- a/packages/sol-doc/src/cli.ts
+++ b/packages/sol-doc/src/cli.ts
@@ -1,6 +1,8 @@
import 'source-map-support/register';
import * as yargs from 'yargs';
+import { logUtils } from '@0xproject/utils';
+
import { generateSolDocAsync } from './solidity_doc_generator';
const JSON_TAB_WIDTH = 4;
@@ -21,5 +23,6 @@ const JSON_TAB_WIDTH = 4;
const doc = await generateSolDocAsync(argv.contractsDir, argv.contracts);
process.stdout.write(JSON.stringify(doc, null, JSON_TAB_WIDTH));
})().catch(err => {
- throw err;
+ logUtils.warn(err);
+ process.exit(1);
});