Skip to content
New issue

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

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

Already on GitHub? # to your account

extensive usage of Result in main #162

Closed
wants to merge 7 commits into from

Conversation

benaryorg
Copy link
Contributor

I pretty much just stuck error-chain into main(). The tests still pass (I guess you didn't really write a lot of tests for this) and the actual error handling is more central.

I still feel like someone should go over the code and add some chain_errs all over the place but that's up to you.

I also did not really test the current output, it probably doesn't show a lot of useful information as long as there is no chain_err.

I also added a mechanism to declare dependencies (e.g. serve needs build) which then even further centralises error handling.

Please do me a favour and let someone thoroughly review those changes.

for further info see rust-lang-deprecated/error-chain#65

Signed-off-by: benaryorg <binary@benary.org>
Signed-off-by: benaryorg <binary@benary.org>
Signed-off-by: benaryorg <binary@benary.org>
Signed-off-by: benaryorg <binary@benary.org>
Signed-off-by: benaryorg <binary@benary.org>
@benaryorg
Copy link
Contributor Author

Oh yeah, I forgot: I linked to rust-lang-deprecated/error-chain#65 in e6cf321; should there be a new release of error-chain; please throw out that git stuff immediately and replace it by an actual version.

Signed-off-by: benaryorg <binary@benary.org>
@benaryorg
Copy link
Contributor Author

Sorry. Forgot cargo fmt. Now the tests pass.

Signed-off-by: benaryorg <binary@benary.org>
@benaryorg
Copy link
Contributor Author

New version of error-chain renders the above comment obsolete.

@epage
Copy link
Member

epage commented Oct 8, 2017

Closed by #291

@epage epage closed this Oct 8, 2017
epage added a commit to epage/cobalt.rs that referenced this pull request Oct 18, 2018
Breaking Changes

* **for_block:**  make ranges inclusive. ([42055c35](cobalt-org/liquid-rust@42055c3))

Features

* Indexing by variable ([c216a439](cobalt-org/liquid-rust@c216a43), closes [cobalt-org#209](cobalt-org/liquid-rust#209))
* **for_block:**  support parameters with variables ([7376ccf5](cobalt-org/liquid-rust@7376ccf), closes [cobalt-org#162](cobalt-org/liquid-rust#162))
* **filters:**
  * Added: "at_most" ([be3e55c0](cobalt-org/liquid-rust@be3e55c))
  * Added: "at_least" ([be3e55c0](cobalt-org/liquid-rust@be3e55c))
* **tags:**
  * Added tablerow ([18660736](cobalt-org/liquid-rust@1866073), closes [cobalt-org#163](cobalt-org/liquid-rust#163))
  * Added ifchanged ([18660736](cobalt-org/liquid-rust@1866073), closes [cobalt-org#163](cobalt-org/liquid-rust#163))
  * Added increment ([18660736](cobalt-org/liquid-rust@1866073), closes [cobalt-org#163](cobalt-org/liquid-rust#163))
  * Added decrement ([18660736](cobalt-org/liquid-rust@1866073), closes [cobalt-org#163](cobalt-org/liquid-rust#163))

Bug Fixes

* **for_block:**  make ranges inclusive. ([42055c35](cobalt-org/liquid-rust@42055c3))
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants