|
39 | 39 | from .types import ScreenGeometry, WindowGeometry |
40 | 40 | from .typing import BossType, ChildType, EdgeLiteral, TabType, TypedDict |
41 | 41 | from .utils import ( |
42 | | - color_as_int, get_primary_selection, load_shaders, open_cmd, open_url, |
43 | | - parse_color_set, read_shell_environment, sanitize_title, |
| 42 | + color_as_int, get_primary_selection, load_shaders, log_error, open_cmd, |
| 43 | + open_url, parse_color_set, read_shell_environment, sanitize_title, |
44 | 44 | set_primary_selection |
45 | 45 | ) |
46 | 46 |
|
@@ -501,7 +501,7 @@ def send_text(self, *args: str) -> bool: |
501 | 501 | def write_to_child(self, data: Union[str, bytes]) -> None: |
502 | 502 | if data: |
503 | 503 | if get_boss().child_monitor.needs_write(self.id, data) is not True: |
504 | | - print('Failed to write to child %d as it does not exist' % self.id, file=sys.stderr) |
| 504 | + log_error(f'Failed to write to child {self.id} as it does not exist') |
505 | 505 |
|
506 | 506 | def title_updated(self) -> None: |
507 | 507 | update_window_title(self.os_window_id, self.tab_id, self.id, self.title) |
|
0 commit comments