Skip to content

Commit

Permalink
Give a better error message for editor env var incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardOhio24 committed Nov 14, 2020
1 parent 2f3af71 commit b52aa5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/externaleditor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl ExternalEditorComponent {
let mut editor = editor.split_whitespace();

let command = editor.next().ok_or_else(|| {
anyhow!("unable to read editor command")
anyhow!("Environment config variable for opening an editor is empty, check \"GIT_EDITOR\", \"VISUAL\" and \"EDITOR\" environment variables are not empty.")
})?;

let mut editor: Vec<&OsStr> =
Expand Down

0 comments on commit b52aa5f

Please sign in to comment.