()
| 144 | |
| 145 | @contextmanager |
| 146 | def warn_link_failures() -> Iterator[list[str]]: |
| 147 | link_failures: list[str] = [] |
| 148 | try: |
| 149 | yield link_failures |
| 150 | finally: |
| 151 | if link_failures: |
| 152 | msg = LINK_FAILURE_MESSAGE.format( |
| 153 | CacheLinkError.SUPPORT_LINK, |
| 154 | " ".join(link_failures), |
| 155 | ) |
| 156 | ui.error_write(msg) |
| 157 | |
| 158 | |
| 159 | def _add_transfer( |
no test coverage detected