Skip to content

Commit

Permalink
Added error when Lamington can't find any contracts to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinbrown committed May 14, 2019
1 parent d36277c commit 2eb31a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ export const buildAll = async (match?: string[]) => {
let contracts = await glob('!(node_modules)/**/*.cpp');
// Cleanse ignored contracts
contracts = onlyMatches(contracts, match) || filterMatches(contracts);
if (contracts.length === 0) {
console.error();
console.error('Could not find any smart contracts to build.');
process.exit(1);
}

// Log the batch building process
console.log(
`BUILDING ${contracts.length} SMART CONTRACT${contracts.length > 0 ? 's' : ''}`,
Expand Down

0 comments on commit 2eb31a7

Please sign in to comment.