Fix #596 - Report exceptions thrown by flake8

This commit is contained in:
w0rp
2017-05-31 15:19:58 +01:00
parent 5eb80f03a2
commit 42efd51723
3 changed files with 48 additions and 1 deletions

View File

@@ -2,6 +2,16 @@
" Description: Error handling for flake8, etc.
function! ale#handlers#python#HandlePEP8Format(buffer, lines) abort
for l:line in a:lines[:10]
if match(l:line, '^Traceback') >= 0
return [{
\ 'lnum': 1,
\ 'text': 'An exception was thrown. See :ALEDetail',
\ 'detail': join(a:lines, "\n"),
\}]
endif
endfor
" Matches patterns line the following:
"
" Matches patterns line the following: