Skip to content

Commit

Permalink
split the long warning lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jebrosen committed Jun 29, 2018
1 parent 94f3653 commit cc94bf7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contrib/lib/src/templates/fairing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ mod context {
if watcher.watch(ctxt.root.clone(), RecursiveMode::Recursive).is_ok() {
Some((watcher, Mutex::new(rx)))
} else {
warn!("Could not monitor the templates directory for changes. Live template reload will be unavailable");
warn!("Could not monitor the templates directory for changes.");
warn!("Live template reload will be unavailable");
None
}
} else {
warn!("Could not instantiate a filesystem watcher. Live template reload will be unavailable");
warn!("Could not instantiate a filesystem watcher.");
warn!("Live template reload will be unavailable");
None
};

Expand Down Expand Up @@ -93,7 +95,8 @@ mod context {
custom_callback(&mut new_ctxt.engines);
*ctxt = new_ctxt;
} else {
warn!("An error occurred while reloading templates. The previous templates will remain active.");
warn!("An error occurred while reloading templates.");
warn!("The previous templates will remain active.");
};
}
});
Expand Down

0 comments on commit cc94bf7

Please sign in to comment.