fix(updater): Typo in error enum (#812)

This commit is contained in:
Fabian-Lars
2023-12-11 15:19:05 -03:00
committed by GitHub
parent a848e1870a
commit 78e60e6618
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ pub enum Error {
#[error("temp directory is not on the same mount point as the AppImage")] #[error("temp directory is not on the same mount point as the AppImage")]
TempDirNotOnSameMountPoint, TempDirNotOnSameMountPoint,
#[error("binary for the current target not found in the archive")] #[error("binary for the current target not found in the archive")]
BinaryNotFoundInAcrhive, BinaryNotFoundInArchive,
#[error(transparent)] #[error(transparent)]
Http(#[from] http::Error), Http(#[from] http::Error),
} }
+1 -1
View File
@@ -651,7 +651,7 @@ impl Update {
// if we have not returned early we should restore the backup // if we have not returned early we should restore the backup
std::fs::rename(tmp_app_image, &self.extract_path)?; std::fs::rename(tmp_app_image, &self.extract_path)?;
return Err(Error::BinaryNotFoundInAcrhive); return Err(Error::BinaryNotFoundInArchive);
} }
} }
} }