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:
parent
cb2f6d7953
commit
7e31634072
@ -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 )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user