From c82a4a5760006056d6f87534605effe150678bf9 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 30 Jan 2019 13:04:53 +0100 Subject: Fail fast --- packages/sol-compiler/src/compiler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/sol-compiler/src') 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; -- cgit v1.2.3