Propagate errors from warnings.warn() calls

This commit is contained in:
Jeong, YunWon committed 2026-02-02 01:55:22 +09:00
1 parent 188d438e00
commit fce2d7824f
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ pub fn warn(
if let Ok(module) = vm.import("warnings", 0)
&& let Ok(func) = module.get_attr("warn", vm)
{
let _ = func.call((message, category.to_owned(), stack_level), vm);
func.call((message, category.to_owned(), stack_level), vm)?;
}
Ok(())
}