Skip to content

Commit

Permalink
Detailed potential errors in the watch function.
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed Aug 24, 2016
1 parent 75cf2e5 commit 5800c50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ impl Hotwatch {
/// Note that handlers will be run in hotwatch's watch thread, so you'll have to use `move`
/// if the closure captures anything.
///
/// # Errors
///
/// Watching will fail if the path can't be read, thus returning
/// a `hotwatch::Error::Io(std::io::Error)`.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit 5800c50

Please sign in to comment.