Skip to content

Commit

Permalink
Stop echo debug output as error
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Dec 10, 2021
1 parent 0e9d48c commit e8d148e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ EOF

function! s:AsyncInstallHandler(output)
if s:is_debug_on && s:StripWhitespace(a:output != '')
echoerr '[WakaTime] ' . a:output
echo '[WakaTime] ' . a:output
call s:InstallCLI(s:false)
endif
endfunction
Expand All @@ -820,7 +820,7 @@ EOF
function! s:NeovimAsyncInstallExitHandler(job_id, exit_code, event)
let output = s:StripWhitespace(join(s:nvim_async_output, "\n"))
if s:is_debug_on && (a:exit_code != 0 || output != '')
echoerr printf('[WakaTime] %d: %s', a:exit_code, output)
echo printf('[WakaTime] %d: %s', a:exit_code, output)
call s:InstallCLI(s:false)
endif
endfunction
Expand Down

0 comments on commit e8d148e

Please sign in to comment.