mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Fix #2263 - detailed Flow errors should show the original message
This commit is contained in:
@@ -156,7 +156,8 @@ function! ale_linters#javascript#flow#Handle(buffer, lines) abort
|
||||
\}
|
||||
|
||||
if has_key(l:error, 'extra')
|
||||
let l:errorToAdd.detail = s:GetDetails(l:error)
|
||||
let l:errorToAdd.detail = l:errorToAdd.text
|
||||
\ . "\n" . s:GetDetails(l:error)
|
||||
endif
|
||||
|
||||
call add(l:output, l:errorToAdd)
|
||||
|
||||
@@ -499,7 +499,8 @@ Execute(The flow handler should handle extra errors):
|
||||
\ 'col': 35,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'props of React element `New`: This type is incompatible with object type',
|
||||
\ 'detail': 'Property `setVector` is incompatible: number This type is incompatible with function type ',
|
||||
\ 'detail': 'props of React element `New`: This type is incompatible with object type'
|
||||
\ . "\nProperty `setVector` is incompatible: number This type is incompatible with function type ",
|
||||
\ }
|
||||
\]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user