diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-30 20:04:53 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-30 20:11:18 +0800 |
commit | c82a4a5760006056d6f87534605effe150678bf9 (patch) | |
tree | 7a0266ecdac1c327f776e45799dcb43f751aa719 /packages | |
parent | 445a629016136a3f6b361bfb4c732e4a55b52d4c (diff) | |
download | dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.gz dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.zst dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.zip |
Fail fast
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index 29ddfffaa..e0c092bc1 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -280,6 +280,9 @@ export class Compiler { fullSolcVersion = binPaths[solcVersion]; compilerOutput = await compileSolcJSAsync(solcVersion, input.standardInput); } + if (!_.isUndefined(compilerOutput.errors)) { + printCompilationErrorsAndWarnings(compilerOutput.errors); + } compilerOutput.sources = makeContractPathsRelative( compilerOutput.sources, this._contractsDir, @@ -290,9 +293,6 @@ export class Compiler { this._contractsDir, dependencyNameToPackagePath, ); - if (!_.isUndefined(compilerOutput.errors)) { - printCompilationErrorsAndWarnings(compilerOutput.errors); - } for (const contractPath of input.contractsToCompile) { const contractName = contractPathToData[contractPath].contractName; |