aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-26 03:31:13 +0800
committerF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-09-26 04:31:40 +0800
commit7fbfd9ccd935812796ce297bb81fd8a4b72aa734 (patch)
treec51b991f68d4d5099983b1b687ed55a26a658380 /packages
parent1db5ff617fe772d885e1cfd9ba67f645d8d4ee35 (diff)
downloaddexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar.gz
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar.bz2
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar.lz
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar.xz
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.tar.zst
dexon-sol-tools-7fbfd9ccd935812796ce297bb81fd8a4b72aa734.zip
fix: print error and exit process; don't re-throw
https://github.com/0xProject/0x-monorepo/pull/1004#discussion_r219979003 https://github.com/0xProject/0x-monorepo/pull/1004
Diffstat (limited to 'packages')
-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);
});