Skip to content

Commit 0df4769

Browse files
committed
chore(Window): Change copy in warning
1 parent 704c5da commit 0df4769

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/libtmux/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def new_window(
500500
window_args += (f"-e{k}={v}",)
501501
else:
502502
logger.warning(
503-
"Cannot set up environment as tmux 3.0 or newer is required.",
503+
"Environment flag ignored, requires tmux 3.0 or newer.",
504504
)
505505

506506
if window_shell:

src/libtmux/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def split_window(
294294
tmux_args += (f"-e{k}={v}",)
295295
else:
296296
logger.warning(
297-
"Cannot set up environment as tmux 3.0 or newer is required.",
297+
"Environment flag ignored, tmux 3.0 or newer required.",
298298
)
299299

300300
if shell:

tests/legacy_api/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,5 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
313313
)
314314

315315
assert any(
316-
"Cannot set up environment" in record.msg for record in caplog.records
316+
"Environment flag ignored" in record.msg for record in caplog.records
317317
), "Warning missing"

tests/legacy_api/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,5 +383,5 @@ def test_split_window_with_environment_logs_warning_for_old_tmux(
383383
)
384384

385385
assert any(
386-
"Cannot set up environment" in record.msg for record in caplog.records
386+
"Environment flag ignored" in record.msg for record in caplog.records
387387
), "Warning missing"

tests/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,5 +324,5 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
324324
)
325325

326326
assert any(
327-
"Cannot set up environment" in record.msg for record in caplog.records
327+
"Environment flag ignored" in record.msg for record in caplog.records
328328
), "Warning missing"

tests/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def test_split_window_with_environment_logs_warning_for_old_tmux(
396396
)
397397

398398
assert any(
399-
"Cannot set up environment" in record.msg for record in caplog.records
399+
"Environment flag ignored" in record.msg for record in caplog.records
400400
), "Warning missing"
401401

402402

0 commit comments

Comments
 (0)