Skip to content

Commit

Permalink
Change error to warning as the error doesn't trigger a runtime error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Dec 16, 2024
1 parent 07a042f commit 946c27a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion packages/hurl/src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ impl Client {
Ok(Some(value))
}
Err(message) => {
logger.error(&format!("can not parse certificate - {message}"));
logger.warning(&format!("Can not parse certificate - {message}"));
Ok(None)
}
}
Expand Down
9 changes: 0 additions & 9 deletions packages/hurl/src/util/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ impl Logger {
self.stderr.eprintln(&s.to_string(fmt));
}

pub fn error(&mut self, message: &str) {
let fmt = self.format();
let mut s = StyledString::new();
s.push_with("error", Style::new().red().bold());
s.push(": ");
s.push_with(message, Style::new().bold());
self.stderr.eprintln(&s.to_string(fmt));
}

pub fn error_parsing_rich<E: DisplaySourceError>(
&mut self,
content: &str,
Expand Down

0 comments on commit 946c27a

Please sign in to comment.