added a little more context to connection errors

This commit is contained in:
epi
2023-05-06 05:54:05 -05:00
parent 0cd25eedfc
commit ff40549140

View File

@@ -120,12 +120,15 @@ impl HeuristicTests {
) {
if e.to_string().contains(":SSL") {
ferox_print(
&format!("Could not connect to {target_url} due to SSL errors (run with -k to ignore), skipping..."),
&format!("Could not connect to {target_url} due to SSL errors (run with -k to ignore), skipping...\n => {}", e.root_cause()),
&PROGRESS_PRINTER,
);
} else {
ferox_print(
&format!("Could not connect to {target_url}, skipping..."),
&format!(
"Could not connect to {target_url}, skipping...\n => {}",
e.root_cause()
),
&PROGRESS_PRINTER,
);
}