aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-30 20:04:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-30 20:11:18 +0800
commitc82a4a5760006056d6f87534605effe150678bf9 (patch)
tree7a0266ecdac1c327f776e45799dcb43f751aa719
parent445a629016136a3f6b361bfb4c732e4a55b52d4c (diff)
downloaddexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.gz
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.bz2
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.lz
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.xz
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.tar.zst
dexon-0x-contracts-c82a4a5760006056d6f87534605effe150678bf9.zip
Fail fast
-rw-r--r--packages/sol-compiler/src/compiler.ts6
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;