Skip to content

Commit

Permalink
Improve exception message in setup_check_connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
olekoliinyk committed Jan 20, 2025
1 parent a11a5c6 commit 2f11760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Empty file.
7 changes: 6 additions & 1 deletion nat-lab/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ async def setup_check_connectivity():
await ping(connection, dest_ip, 5)
results[source].append((reverse[dest_ip], True))
except Exception as e: # pylint: disable=broad-exception-caught
print(f"Failed to connect from {source} to {reverse[dest_ip]}: {e}")
print(
f"Failed to connect from {source} to {reverse[dest_ip]}: {repr(e)}"
)
print(f"Exception type: {e.__class__.__name__}")
print(f"Exception args: {e.args}")
print(f"Exception attributes: {dir(e)}")
results[source].append((reverse[dest_ip], False))

print("Connectivity between VMs (and docker):")
Expand Down

0 comments on commit 2f11760

Please sign in to comment.