Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

add a warning when unable to save the solidity compiler to disk instead of throwing #5934

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

eggplantzzz
Copy link
Contributor

Currently when Truffle fails to save the Solidity compiler to the cache directory, it will throw an error. This PR changes this behavior so that it displays a warning to the user and continues on with the rest of the compilation flow.

cds-amal
cds-amal previously approved these changes Feb 24, 2023
Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

Nice, this too will be useful!

@cds-amal cds-amal dismissed their stale review February 24, 2023 23:50

have second thoughts

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

Nice quality of life change, @eggplantzzz. I have some small nits and a question: did you consider wrapping Cache.add() in a try-catch since it's the logic that does the writing?

@cds-amal cds-amal self-requested a review February 28, 2023 16:23
Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

I like it. Let's get this in the next Release, it will be helpful!

@eggplantzzz eggplantzzz merged commit 3afb469 into develop Feb 28, 2023
@eggplantzzz eggplantzzz deleted the dont-crash branch February 28, 2023 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants