summaryrefslogtreecommitdiff
path: root/ale_linters/elm
diff options
context:
space:
mode:
authorHéctor Ramón Jiménez <hector0193@gmail.com>2018-05-12 20:27:33 +0200
committerHéctor Ramón Jiménez <hector0193@gmail.com>2018-05-12 20:27:33 +0200
commit115952fae39a70f7b2eee5014da047bc7542816d (patch)
treedaae692d8f8d37cdded69d771f5f460993b598c0 /ale_linters/elm
parentc3f61c391bd74e8feb0d7d127ba353093a61b5c7 (diff)
downloadale-115952fae39a70f7b2eee5014da047bc7542816d.zip
Show Elm.Kernel as location when `report.path` is `null` in a general problem
Diffstat (limited to 'ale_linters/elm')
-rw-r--r--ale_linters/elm/make.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim
index 4b354d43..5f9334da 100644
--- a/ale_linters/elm/make.vim
+++ b/ale_linters/elm/make.vim
@@ -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