style(parser): update error messages

This commit is contained in:
Orhun Parmaksız 2021-11-24 23:26:02 +03:00
parent 2379c6ddf3
commit 0c223c0a72
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ pub enum Error {
#[error("capture group does not exist")]
CaptureError,
/// Error that may occur when the glob pattern returns zero results.
#[error("glob pattern has yielded no results")]
#[error("could not find any files to parse")]
EmptyFileListError,
/// Error that may occur when a required file for parsing does not exist.
#[error("required file missing: '{0}'")]

View file

@ -40,7 +40,7 @@ impl<'a> App<'a> {
fn fetch_documentation(&mut self, kernel_docs: &Path) -> Result<()> {
if !kernel_docs.exists() {
eprintln!(
"warning: linux kernel documentation is not found in path: {:?}",
"warning: `linux kernel documentation is not found in path: {:?}`",
kernel_docs.to_string_lossy()
);
}