Skip to content

Commit

Permalink
feat: Error when no recipe paths are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Jul 11, 2024
1 parent 184f8de commit 99a358e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ async fn main() -> miette::Result<()> {
}
}

if recipe_paths.is_empty() {
miette::bail!("Couldn't detect any recipes.")
}

if build_args.tui {
#[cfg(feature = "tui")]
{
Expand Down

0 comments on commit 99a358e

Please sign in to comment.