Convert stderr from server to unicode

On Python 3, reading stderr from server returns bytes. We need to convert it to
unicode for splitlines.
This commit is contained in:
micbou 2017-03-08 17:30:00 +01:00
parent cb2f6d7953
commit 7e31634072
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

View File

@ -242,7 +242,8 @@ class YouCompleteMe( object ):
else:
error_message = EXIT_CODE_UNEXPECTED_MESSAGE.format( code = return_code )
server_stderr = '\n'.join( self._server_popen.stderr.read().splitlines() )
server_stderr = '\n'.join(
utils.ToUnicode( self._server_popen.stderr.read() ).splitlines() )
if server_stderr:
self._logger.error( server_stderr )