summaryrefslogtreecommitdiffstats
path: root/src/line_range.rs
diff options
context:
space:
mode:
authorLiam Kalir <liamkalir9595@gmail.com>2020-01-26 19:19:54 -0500
committerDavid Peter <sharkdp@users.noreply.github.com>2020-01-27 06:54:00 +0100
commit5ef1c6cce2bbe2065367b239c2db0547340ddea7 (patch)
tree382a39ea7632ab1b8e431e3a9547ce80ca95fe3d /src/line_range.rs
parent93881d9a6402631855f061adb7ca19d681c7d578 (diff)
Grammar touch-ups, more descriptive error message for invalid line
ranges
Diffstat (limited to 'src/line_range.rs')
-rw-r--r--src/line_range.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/line_range.rs b/src/line_range.rs
index ac3ec981..9e656cb2 100644
--- a/src/line_range.rs
+++ b/src/line_range.rs
@@ -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()),
}
}