Print a message if we fail to get a PID

This commit is contained in:
Ben Jackson 2019-02-12 12:34:17 +00:00
commit 09850702cf

View file

@ -457,6 +457,11 @@ class DebugSession( object ):
'utf-8' ).strip()
self._logger.debug( 'Got PID: %s', pid )
if not pid:
# FIXME: We should raise an exception here or something
utils.UserMessage( 'Unable to get PID', persist = True )
return
cmd = ssh + remote[ 'attachCommand' ][:]
for index, item in enumerate( cmd ):