aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3d4b19d..c3cedee 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -62,11 +62,11 @@ fn main() -> Result<()> {
if filename == &PathBuf::from("-") {
let macros = makefile.macros.with_overlay();
let file = MakefileReader::read(&args, macros, stdin().lock())?.finish();
- makefile.extend(file);
+ makefile.extend(file)?;
} else {
let macros = makefile.macros.with_overlay();
let file = MakefileReader::read_file(&args, macros, filename)?.finish();
- makefile.extend(file);
+ makefile.extend(file)?;
};
}