1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-27 17:41:42 +00:00

Grammar touch-ups, more descriptive error message for invalid line

ranges
This commit is contained in:
Liam Kalir
2020-01-26 19:19:54 -05:00
committed by David Peter
parent 93881d9a64
commit 5ef1c6cce2
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ impl LineRange {
new_range.upper = line_numbers[1].parse()?;
Ok(new_range)
},
_ => Err("expected at most single ':' character".into()),
_ => Err("Line range contained more than one ':' character. Expected format: 'N' or 'N:M'".into()),
}
}