diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-05-22 22:40:24 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-05-25 06:39:19 +0800 |
commit | 9af77dc835b50d957c308d6de83d26b089ec6e43 (patch) | |
tree | 93f447d6651c2df8880032a180a5bb1bed59e3e9 /packages | |
parent | d4aacd218a4fdb1876ac656e04fcccdb892a9395 (diff) | |
download | dexon-sol-tools-9af77dc835b50d957c308d6de83d26b089ec6e43.tar.gz dexon-sol-tools-9af77dc835b50d957c308d6de83d26b089ec6e43.tar.zst dexon-sol-tools-9af77dc835b50d957c308d6de83d26b089ec6e43.zip |
Add errMsg when throwing on unrecognized error
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-compiler/src/utils/compiler.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/utils/compiler.ts b/packages/sol-compiler/src/utils/compiler.ts index 3731385e2..715ecd6f0 100644 --- a/packages/sol-compiler/src/utils/compiler.ts +++ b/packages/sol-compiler/src/utils/compiler.ts @@ -71,7 +71,7 @@ export function getNormalizedErrMsg(errMsg: string): string { const SOLIDITY_FILE_EXTENSION_REGEX = /(.*\.sol)/; const errPathMatch = errMsg.match(SOLIDITY_FILE_EXTENSION_REGEX); if (_.isNull(errPathMatch)) { - throw new Error('Could not find a path in error message'); + throw new Error(`Could not find a path in error message: ${errMsg}`); } const errPath = errPathMatch[0]; const baseContract = path.basename(errPath); |