MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / format_error

Function format_error

rust/src/lib.rs:1892–1898  ·  view source on GitHub ↗
(err: &Error)

Source from the content-addressed store, hash-verified

1890}
1891
1892pub fn format_error(err: &Error) -> String {
1893 if is_tls_certificate_error(err) {
1894 format!("{err:#}. {TLS_CERTIFICATE_ERR_MSG}")
1895 } else {
1896 format!("{err:#}")
1897 }
1898}
1899
1900#[cfg(test)]
1901mod tests {

Callers 1

mainFunction · 0.85

Calls 1

is_tls_certificate_errorFunction · 0.85

Tested by

no test coverage detected