aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/input.rs')
-rw-r--r--src/makefile/input.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs
index 316968f..d6cffdf 100644
--- a/src/makefile/input.rs
+++ b/src/makefile/input.rs
@@ -240,7 +240,11 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> {
// before we actually test it, see if it's only visible after expanding macros
let (line_tokens, line_type) = if let LineType::Unknown = line_type {
- let line_tokens = TokenString::text(self.expand_macros(&line_tokens)?.trim());
+ let line_tokens = TokenString::text(
+ self.expand_macros(&line_tokens)
+ .wrap_err_with(|| format!("while parsing line {}", line_number))?
+ .trim(),
+ );
// and let's eval whatever bullshit needs evaling
#[cfg(feature = "full")]
{