Skip to content

Commit a62f541

Browse files
committed
✨ feat(cli): improve error handling for section module import
1 parent ea69a3b commit a62f541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/mq-run/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl Cli {
495495
engine.load_builtin_module();
496496

497497
if self.input.aggregate {
498-
engine.import_module("section").expect("Failed to load section module");
498+
engine.import_module("section").map_err(|e| *e)?;
499499
}
500500

501501
if let Some(dirs) = &self.input.module_directories {

0 commit comments

Comments
 (0)