mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Improve exception logging to make swallowing/reraising explicit in all cases.
This commit is contained in:
parent
bf1fbbc8ee
commit
de9ea2cb9c
20 changed files with 93 additions and 92 deletions
|
|
@ -134,8 +134,8 @@ def test_with_path_mappings(pyfile, long_tmpdir, target, run):
|
|||
|
||||
try:
|
||||
session.request("source", {"sourceReference": 0})
|
||||
except Exception as ex:
|
||||
assert "Source unavailable" in str(ex)
|
||||
except Exception as exc:
|
||||
assert "Source unavailable" in str(exc)
|
||||
else:
|
||||
pytest.fail("sourceReference=0 should not be valid")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue