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

feature: report path on failed abigen load #205

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

prestwich
Copy link
Collaborator

This PR improves an error message by printing the path that the abigen macro tries to read whenever it fails to do so. This error is triggered when the path does not exist or does not contain valid JSON

I'm unsure the best way to write automated tests for this, but I have confirmed it works great locally by pointing it at ../

@prestwich prestwich requested a review from gakonst February 22, 2021 18:26
@prestwich prestwich added the enhancement New feature or request label Feb 22, 2021
@gakonst gakonst merged commit 3e5f7a7 into master Feb 22, 2021
@gakonst gakonst deleted the prestwich/report-abigen-path branch February 22, 2021 18:35
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants