cli: fix command line silent abort

Fix the command line silents abort when the
the `EDITOR` variable is not specified.

With this commit the result is reported below

```
➜  rio git:(main) RAD_PASSPHRASE=12345 rad issue open
✗ Issue failed: editor not configured: the `EDITOR` environment variable is not set
```

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2023-03-06 15:17:21 +01:00 committed by Alexis Sellier
parent e408b0d62c
commit 0e491fae79
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
description.unwrap_or("Enter a description...".to_owned())
);
if let Ok(Some(text)) = term::Editor::new().edit(&doc) {
if let Some(text) = term::Editor::new().edit(&doc)? {
let mut meta = String::new();
let mut frontmatter = false;
let mut lines = text.lines();