Bubble up SubProcessError to basecommand._main
@@ -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)
