mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 04:12:31 +01:00
Grammar touch-ups, more descriptive error message for invalid line
ranges
This commit is contained in:
@@ -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()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user