-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into refactor-diagnosis
- Loading branch information
Showing
39 changed files
with
437 additions
and
376 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
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
4 changes: 2 additions & 2 deletions
4
src/canisters/frontend/ic-asset/src/canister_api/types/batch_upload/v0.rs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
use ic_agent::AgentError; | ||
use thiserror::Error; | ||
|
||
/// Errors related to creating a chunk. | ||
#[derive(Error, Debug)] | ||
pub enum CreateChunkError { | ||
#[error(transparent)] | ||
Agent(#[from] AgentError), | ||
/// Failed in call to create_chunk, or in waiting for response. | ||
#[error("Failed to create chunk: {0}")] | ||
CreateChunk(AgentError), | ||
|
||
/// Failed to decode the create chunk response. | ||
#[error("Failed to decode create chunk response: {0}")] | ||
DecodeCreateChunkResponseFailed(candid::Error), | ||
DecodeCreateChunkResponse(candid::Error), | ||
} |
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
2 changes: 2 additions & 0 deletions
2
src/canisters/frontend/ic-asset/src/error/downgrade_commit_batch_arguments.rs
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,7 +1,9 @@ | ||
use thiserror::Error; | ||
|
||
/// Errors related to downgrading CommitBatchArguments for use with a v0 asset canister. | ||
#[derive(Error, Debug)] | ||
pub enum DowngradeCommitBatchArgumentsV1ToV0Error { | ||
/// Asset canister v0 does not support SetAssetProperties. | ||
#[error("SetAssetProperties is not supported")] | ||
V0SetAssetPropertiesNotSupported, | ||
} |
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
2 changes: 2 additions & 0 deletions
2
src/canisters/frontend/ic-asset/src/error/get_asset_properties.rs
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,8 +1,10 @@ | ||
use ic_agent::AgentError; | ||
use thiserror::Error; | ||
|
||
/// Errors related to getting asset properties. | ||
#[derive(Error, Debug)] | ||
pub enum GetAssetPropertiesError { | ||
/// The call to get_asset_properties failed. | ||
#[error("Failed to get asset properties for {0}: {1}")] | ||
GetAssetPropertiesFailed(String, AgentError), | ||
} |
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,11 +1,14 @@ | ||
use std::path::PathBuf; | ||
use thiserror::Error; | ||
|
||
/// Errors related to loading an asset configuration rule. | ||
#[derive(Error, Debug)] | ||
pub enum LoadRuleError { | ||
/// The match string could not be combined with the root directory to form a valid string. | ||
#[error("Failed to combine {0} and {1} into a string (to be later used as a glob pattern)")] | ||
FormGlobPatternFailed(PathBuf, String), | ||
|
||
/// The glob pattern was not valid. | ||
#[error("{0} is not a valid glob pattern: {1}")] | ||
InvalidGlobPattern(String, globset::Error), | ||
} |
Oops, something went wrong.