5a6b2421bf
This improves the failure messages that will show in tests if a DAP request unexpectedly fails.
Before:
```
Instance of 'Response'
```
After:
```
Request "evaluate" failed:
{
"seq": 17,
"type": "response",
"body": {
"error": {
"format": "{message}",
"id": 1,
"showUser": true,
"variables": {
"message": "This is a test failure",
"stack": "#0 DartDebugAdapter.evaluateRequest (package:dds/src/dap/adapters/dart.dart:1046:5)\n#1 (SNIP)\n"
}
}
},
"command": "evaluate",
"message": "This is a test failure",
"request_seq": 8,
"success": false
}
```
Might help diagnose https://github.com/dart-lang/sdk/issues/55705.
Change-Id: If9edad16090a8bd09e22dd9b772401763d281f8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366640
Commit-Queue: Helin Shiah <helinx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Helin Shiah <helinx@google.com>