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

refactor(solc): add new io error with path info #680

Merged
merged 2 commits into from
Dec 12, 2021

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 12, 2021

Motivation

If there was an error due to a File not found io::Error then there is no info about the path, because io::File and alike consists of file descriptors and lacks file name information.

The general solution to that is to add additional context with anyhow::Context for example.

Solution

Add a SolcIoError that also holds the path info when doing general io like reading from files

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

LGTM - hopefully the debugging experience is now a little better

@gakonst gakonst merged commit 5dec757 into gakonst:master Dec 12, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* feat: added 4byte-event to cast

* feat: fourbyte_event() tests
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