Commit aaea9fe
committed
fix(dap): validate attach_endpoint's arguments up front
The helper dereferences config.port/host and opts.label/default_port; a
malformed call (nil opts, missing label) crashed with a low-level "attempt to
index" instead of an actionable message. Assert both shapes at the top — same
clear-config-time-error purpose the function exists for, matching M.resolve's
spec.configure assert precedent. Verified: the two internal callers (delve,
python) still pass; nil/label-less calls now error clearly.1 parent 7d143b1 commit aaea9fe
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments