mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-10 15:25:51 +08:00
Show Elm.Kernel as location when report.path is null in a general problem
This commit is contained in:
1 parent
c3f61c391b
commit
115952fae3
2 files changed
+16
-1
No files matched your search
@@ -22,6 +22,10 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort
|
||||
" General problem
|
||||
let l:details = ale_linters#elm#make#ParseMessage(l:report.message)
|
||||
|
||||
if empty(l:report.path)
|
||||
let l:report.path = 'Elm.Kernel'
|
||||
endif
|
||||
|
||||
if ale_linters#elm#make#FileIsBuffer(l:report.path)
|
||||
call add(l:output, {
|
||||
\ 'lnum': 1,
|
||||
@@ -36,7 +40,6 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort
|
||||
\ 'detail': l:report.path ." ----------\n\n". l:details,
|
||||
\})
|
||||
endif
|
||||
|
||||
else
|
||||
" Compilation errors
|
||||
for l:error in l:report.errors
|
||||
|
||||
Reference in new issue
Block a user