mirror of https://github.com/pypa/pip
Bubble up SubProcessError to basecommand._main
This commit is contained in:
parent
ab3ee7191c
commit
e9f738a3da
|
@ -28,6 +28,7 @@ from pip._internal.exceptions import (
|
|||
CommandError,
|
||||
InstallationError,
|
||||
PreviousBuildDirError,
|
||||
SubProcessError,
|
||||
UninstallationError,
|
||||
)
|
||||
from pip._internal.utils.deprecation import deprecated
|
||||
|
@ -201,7 +202,8 @@ class Command(CommandContextMixIn):
|
|||
logger.debug('Exception information:', exc_info=True)
|
||||
|
||||
return PREVIOUS_BUILD_DIR_ERROR
|
||||
except (InstallationError, UninstallationError, BadCommand) as exc:
|
||||
except (InstallationError, UninstallationError, BadCommand,
|
||||
SubProcessError) as exc:
|
||||
logger.critical(str(exc))
|
||||
logger.debug('Exception information:', exc_info=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue