-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scan archives zip and tar, scan binaries.
- Loading branch information
Showing
11 changed files
with
789 additions
and
90 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
use thiserror::Error; | ||
use crate::source::errors::SourceError; | ||
use crate::inspect::errors::InspectorError; | ||
use std::io; | ||
use zip::result::ZipError; | ||
|
||
/// ExecutorError describes all errors that can occure in Executor. | ||
/// | ||
#[derive(Error, Debug)] | ||
pub enum ExecutorError { | ||
#[error("failed due to inspector failuer: {0}")] | ||
#[error("failed due to inspector failuer, {0}")] | ||
InspectorFailure(#[from] InspectorError), | ||
#[error("failed due to source io failuer: {0}")] | ||
#[error("failed due to source io failuer, {0}")] | ||
GitSourceIoFailure(#[from] SourceError), | ||
#[error("failed due to parameter is lacking, {0}")] | ||
FileIoFailure(#[from] io::Error), | ||
#[error("failed due file io error, {0}")] | ||
ZipArchiveFailure(#[from] ZipError), | ||
#[error("failed due zip archive reading error, {0}")] | ||
WrongParameterFailure(String), | ||
#[error("filed due to unexpected error, {0}")] | ||
Unexpected(String), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.