config: show filepath and line numbers for config errors

Fixes #1063
This commit is contained in:
Mitchell Hashimoto
2024-10-17 07:32:54 -07:00
parent a4e14631ef
commit f24098cbd8
3 changed files with 28 additions and 13 deletions

View File

@@ -961,7 +961,7 @@ pub fn LineIterator(comptime ReaderType: type) type {
}
// Constructs a LineIterator (see docs for that).
pub fn lineIterator(reader: anytype) LineIterator(@TypeOf(reader)) {
fn lineIterator(reader: anytype) LineIterator(@TypeOf(reader)) {
return .{ .r = reader };
}