Commit 880b083
authored
Show error message on evaluate also for hover context (#2006)
If a client sends an evaluate command with context=hover and if the
expression fails, the client received an error with the message
"Exception occurred during evaluation"
This wasn't very helpful. This changes the logic to treat `hover` just
like `watch` in the error case to send back `eval_result.result`. That
contains the message of the exception which is typically more useful.1 parent 2801e48 commit 880b083
1 file changed
Lines changed: 2 additions & 5 deletions
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1217 | + | |
| 1218 | + | |
1222 | 1219 | | |
1223 | 1220 | | |
1224 | 1221 | | |
| |||
0 commit comments