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

fix incorrect error printout when compiling a library with no errors #812

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

sezna
Copy link
Contributor

@sezna sezna commented Feb 17, 2022

It looks like #796 introduced a bug where we would call print_on_failure if a forc build was called on a library, even if compilation was successful. This resulted in compiling the standard library printing this out:

  Aborting due to 0 error.
Error: "Failed to compile lib-std"

The deduplication of fn compile() code is amazing, though, and I tried my best to preserve that. cc @mitchmindtree could you make sure I am not messing anything up here? I know you did that refactor.

Copy link
Contributor

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

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

utACK

@sezna sezna merged commit be7b2d4 into master Feb 17, 2022
@sezna sezna deleted the sezna/forc-bugfix branch February 17, 2022 22:06
Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

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

Agh cood catch, LGTM!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working forc
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants