diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index 89a21d2ca..a28c0a494 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -260,7 +260,8 @@ def build(options: BuildOptions): call(['docker', 'cp', container_name + ':/output/.', os.path.abspath(options.output_dir)]) - except subprocess.CalledProcessError: + except subprocess.CalledProcessError as error: + troubleshoot(options.project_dir, error) exit(1) finally: # Still gets executed, even when 'exit(1)' gets called