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

Return Result<T, failure::Error> instead of Result<T, wasm_pack::error::Error> #401

Merged
merged 10 commits into from
Oct 9, 2018

Conversation

drager
Copy link
Member

@drager drager commented Oct 7, 2018

This PR intends to fix #280. This PR is branched out from @fitzgen branch in #392.

@ashleygwilliams ashleygwilliams added this to the 0.6.0 milestone Oct 8, 2018
@ashleygwilliams ashleygwilliams removed the work in progress do not merge! label Oct 9, 2018
@ashleygwilliams ashleygwilliams changed the title [WIP] Return Result<T, failure::Error> instead of Result<T, wasm_pack::error::Error> Return Result<T, failure::Error> instead of Result<T, wasm_pack::error::Error> Oct 9, 2018
Copy link
Member

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

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

looks good to me! let's get this in once we merge @fitzgen's

@fitzgen fitzgen merged commit 60bdb80 into rustwasm:master Oct 9, 2018
@ashleygwilliams ashleygwilliams modified the milestones: 0.6.0, 0.5.1 Oct 9, 2018
xmclark added a commit to xmclark/wasm-pack that referenced this pull request Oct 29, 2018
Change to INFO when alerting users about missing fields in Cargo.toml

Combine filed missing messages into one INFO line

Fix bad formating

Merge pull request rustwasm#394 from mstallmo/master

Change to INFO when alerting users about missing fields Cargo.toml
child: Always print everything to our output

Also don't buffer the child's stdout and stderr.

error: Add stdout to the `Error::Cli` variant

refactor: Return failure::Error instead of wasm_pack::error::Error

refactor: Import self and use full module path for failure

Use full module path for failure to be consistent since
it's used like that in other modules.

refactor: Return failure::Error instead of wasm_pack::error::Error

chore: Run rustfmt

chore: Run rustfmt

Merge pull request rustwasm#392 from fitzgen/child-process-and-output-management

Child process and output management
Merge pull request rustwasm#401 from drager/return-failure-error

Return `Result<T, failure::Error>` instead of `Result<T, wasm_pack::error::Error>`
v0.5.1

Merge pull request rustwasm#404 from rustwasm/0.5.1

v0.5.1
feat(website): bump vers

Merge pull request rustwasm#405 from rustwasm/website-update

feat(website): bump vers
test(command/build): add a test for build command

useing local wasm-bindgen

Fix typo in test function name for copying the README

bugfix(bindgen-target-dir): use PathBuf to join

the old code are hard coded path with "/", which may cause error
on windows, thus changing to use PathBuf.join.

fixing rustwasm#414

change for cargo_metadata

Merge branch 'master' into test-build-for-example
Merge pull request rustwasm#408 from huangjj27/test-build-for-example

test(command/build): add a test for build command
Merge pull request rustwasm#412 from mstallmo/typo-fix

Fix typo in test function name for copying the README
Merge branch 'master' into fix-canonical-paths-on-windows
this change is not related to this PR


use absolutize


remove unused use


cargo fmt
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.

Most fallible methods should return Result<T, failure::Error> instead of Result<T, wasm_pack::error::Error>
3 participants