Skip to content

Commit 7b13a0f

Browse files
committed
Write logger errors to stderr
1 parent b52d27d commit 7b13a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cibuildwheel/logger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ def error(self, error: Union[BaseException, str]) -> None:
114114
print()
115115

116116
if self.fold_mode == 'github':
117-
print(f'::error::{error}')
117+
print(f'::error::{error}', file=sys.stderr)
118118
else:
119119
c = self.colors
120-
print(f'{c.bright_red}Error{c.end} {error}')
120+
print(f'{c.bright_red}Error{c.end} {error}', file=sys.stderr)
121121

122122
def _start_fold_group(self, name: str) -> None:
123123
self._end_fold_group()

0 commit comments

Comments
 (0)