Skip to content

Commit

Permalink
Improve error docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jan 17, 2024
1 parent 9642bd9 commit e28ccb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ pub enum Error {
/// The terminal responded using an unsupported response format.
#[error("failed to parse response {0:?}")]
Parse(String),
/// The query timed out.
/// The query timed out. This can happen because \
/// either the terminal does not support querying for colors \
/// or the terminal has a lot of latency (e.g. when connected via SSH).
#[error("operation did not complete within {0:?}")]
Timeout(Duration),
/// The terminal is known to be unsupported.
Expand Down

0 comments on commit e28ccb3

Please sign in to comment.