Skip to content

Commit

Permalink
fix (#3480)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Oct 12, 2022
1 parent e02d7a5 commit 28312e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/cmd/forge/script/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ impl ScriptArgs {
) -> eyre::Result<(Project, ProjectCompileOutput)> {
let project = script_config.config.project()?;

if !project.paths.has_input_files() {
eyre::bail!("No input files detected.")
}

// We received a file path.
if let Ok(target_contract) = dunce::canonicalize(&self.path) {
let output = compile::compile_target(
Expand Down

0 comments on commit 28312e7

Please sign in to comment.