Skip to content

Commit 6ebb2ab

Browse files
authored
spacetimedb-update self-install fails if the install fails. (#2642)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
1 parent 9f09e8a commit 6ebb2ab

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

crates/update/src/cli/self_install.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ impl SelfInstall {
6767
.context("could not install binary")?;
6868

6969
eprintln!("Downloading latest version...");
70-
let res = super::upgrade::Upgrade {}
70+
super::upgrade::Upgrade {}
7171
.exec(&paths)
72-
.context("failed to download and install latest SpacetimeDB version");
73-
if let Err(err) = &res {
74-
eprintln!("Error: {err:#}\n")
75-
}
72+
.context("failed to download and install latest SpacetimeDB version")?;
7673

7774
eprintln!(
7875
"The `spacetime` command has been installed as {}",

0 commit comments

Comments
 (0)