cli: Fix another issue with unspecified editor
This commit includes a fix for another occurrence of the missing `EDITOR` variable. This time, it was inside the `rad edit` command. The fix is trivial, as it simply returns the error to the caller. Co-Developed-by: Slack Coder <slackcoder@server.ky> Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
parent
75139a6f02
commit
520fb61230
|
|
@ -71,8 +71,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
|||
let repo = storage.repository(id)?;
|
||||
|
||||
let payload = serde_json::to_string_pretty(&project.payload)?;
|
||||
match term::Editor::new().extension("json").edit(payload) {
|
||||
Ok(Some(updated_payload)) => {
|
||||
match term::Editor::new().extension("json").edit(payload)? {
|
||||
Some(updated_payload) => {
|
||||
project.payload = serde_json::from_str(&updated_payload)?;
|
||||
project.sign(&signer).and_then(|(_, sig)| {
|
||||
project.update(
|
||||
|
|
|
|||
Loading…
Reference in New Issue