diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 485b05d..b4b76b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -233,6 +233,9 @@ async fn shell_execute(config: &GlobalConfig, shell: &Shell, mut input: Input) - config .write() .after_chat_completion(&input, &eval_str, &[])?; + if eval_str.is_empty() { + bail!("No command generated"); + } if config.read().dry_run { config.read().print_markdown(&eval_str)?; return Ok(()); |
