Better error message when seek fails

> hexyl "$(which hexyl)" --skip=-5gib
    Error: Failed to jump to the desired input position. This could be
    caused by a negative offset that is too large or by an input that is not
    seek-able (e.g. if the input comes from a pipe).

ref: #114
This commit is contained in:
sharkdp authored and David Peter committed 2020-11-01 22:56:59 +01:00
1 parent 66f8508b57
commit 8c3f2230c6
4 files changed
+119 -7

No files matched your search

+2 -1
View File
@@ -23,7 +23,8 @@ default-features = false
features = ["suggestions", "color", "wrap_help"]
[dev-dependencies]
assert_cmd = "1.0.1"
assert_cmd = "1.0"
predicates = "1.0"
[profile.release]
lto = true