Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling in transformation modules #108

Merged
merged 2 commits into from
Jun 4, 2019
Merged

Conversation

axic
Copy link
Member

@axic axic commented Jun 4, 2019

Follow up of #105 and #106.

@axic axic requested a review from jakelang June 4, 2019 09:32
@axic axic mentioned this pull request Jun 4, 2019
@axic axic marked this pull request as ready for review June 4, 2019 10:35
@@ -65,27 +66,26 @@ fn deployer_code() -> Vec<u8> {
}

/// Returns a module which contains the deployable bytecode as a custom section.
fn create_custom_deployer(payload: &[u8]) -> Module {
fn create_custom_deployer(payload: &[u8]) -> Result<Module, ModuleError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we start to see Result<Module, ModuleError> everywhere we should include a type Result<T> = ::std::result::Result<T, ModuleError> in lib.rs

@axic axic merged commit af68206 into master Jun 4, 2019
@axic axic deleted the error-handling branch June 4, 2019 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants