Skip to content

Commit 50467ae

Browse files
committed
Fix rewatch panic on duplicate module name
1 parent ff9d6d3 commit 50467ae

File tree

5 files changed

+218
-203
lines changed

5 files changed

+218
-203
lines changed

rewatch/src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn initialize_build(
147147
}
148148

149149
let mut build_state = BuildCommandState::new(project_context, packages, compiler, warn_error);
150-
packages::parse_packages(&mut build_state);
150+
packages::parse_packages(&mut build_state)?;
151151

152152
let compile_assets_state = read_compile_state::read(&mut build_state)?;
153153

rewatch/src/build/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ pub fn clean(path: &Path, show_progress: bool, plain_output: bool) -> Result<()>
366366

367367
let timing_clean_mjs = Instant::now();
368368
let mut build_state = BuildState::new(project_context, packages, compiler_info);
369-
packages::parse_packages(&mut build_state);
369+
packages::parse_packages(&mut build_state)?;
370370
let root_config = build_state.get_root_config();
371371
let suffix_for_print = match root_config.package_specs {
372372
None => match &root_config.suffix {

0 commit comments

Comments
 (0)