diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index c08c4d3..fd00533 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -214,6 +214,7 @@ if stderrdata: elif p.returncode > 0: if verbose: print('Formatter {} gives nonzero returncode: {}'.format(formattername, p.returncode)) + vim.command('return 1') else: # It is not certain what kind of line endings are being used by the format program. # Therefore we simply split on all possible eol characters.