Skip to content

Commit 87e544e

Browse files
committed
replace panic with error
1 parent 7654230 commit 87e544e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn update(release: Release) -> Result<(), Box<dyn std::error::Error>> {
133133
.to_string();
134134
tmp_archive_dir.path().join(binary)
135135
} else {
136-
panic!("Running on an unsupported OS");
136+
return Err("Running on unsupported OS".into());
137137
};
138138

139139
self_replace::self_replace(new_exe)?;

0 commit comments

Comments
 (0)