Skip to content

Commit 3b641fb

Browse files
authored
Fix print full error messages (#68)
1 parent 48b4b26 commit 3b641fb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

werk-cli/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ fn main() -> Result<(), Error> {
187187
.init(),
188188
}
189189

190-
smol::block_on(try_main(args))
190+
if let Err(e) = smol::block_on(try_main(args)) {
191+
eprintln!("Error: {}", e);
192+
std::process::exit(1);
193+
}
194+
Ok(())
191195
}
192196

193197
async fn try_main(args: Args) -> Result<(), Error> {

0 commit comments

Comments
 (0)