We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run
1 parent af207a0 commit 479cbcaCopy full SHA for 479cbca
lib/src/utils.rs
@@ -117,16 +117,12 @@ pub(crate) fn spawn_editor(tmpf: &tempfile::NamedTempFile) -> Result<()> {
117
let argv0 = editor_args
118
.next()
119
.ok_or_else(|| anyhow::anyhow!("Invalid editor: {editor}"))?;
120
- let status = Command::new(argv0)
+ Command::new(argv0)
121
.args(editor_args)
122
.arg(tmpf.path())
123
.lifecycle_bind()
124
- .status()
125
- .context("Spawning editor")?;
126
- if !status.success() {
127
- anyhow::bail!("Invoking editor: {editor} failed: {status:?}");
128
- }
129
- Ok(())
+ .run()
+ .with_context(|| format!("Invoking editor {editor} failed"))
130
}
131
132
/// Convert a combination of values (likely from CLI parsing) into a signature source
0 commit comments