From 1538f09e0ce1457a0d06f8e8094c7173fe801fdf Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Tue, 15 Oct 2019 22:53:25 +0200 Subject: [PATCH] Print launch command name on failure --- CHANGELOG.md | 1 + alacritty_terminal/src/tty/unix.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efdd7bb..40392f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - New CLI flag `--hold` for keeping Alacritty opened after its child process exits - Escape sequence to save and restore window title from stack - Alternate scroll escape sequence (`CSI ? 1007 h` / `CSI ? 1007 l`) +- Print name of launch command if Alacritty failed to execute it ### Changed diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs index a2a277a..b820d75 100644 --- a/alacritty_terminal/src/tty/unix.rs +++ b/alacritty_terminal/src/tty/unix.rs @@ -236,7 +236,7 @@ pub fn new(config: &Config, size: &SizeInfo, window_id: Option) -> pty.fd.as_raw_fd().on_resize(size); pty }, - Err(err) => die!("Failed to spawn command: {}", err), + Err(err) => die!("Failed to spawn command '{}': {}", shell.program, err), } }