Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Enrich error messages #673

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

siljapetasch
Copy link

enriching error messages to identify issues during the 'add chain' process

@siljapetasch siljapetasch requested a review from a team as a code owner November 5, 2024 23:32
@@ -128,35 +128,35 @@ func entrypoint(ctx *cli.Context) error {
// Check if superchain target directory exists
targetDir := filepath.Join(superchainRepoRoot, "superchain", "configs", superchainTarget)
if _, err := os.Stat(targetDir); os.IsNotExist(err) {
return fmt.Errorf("superchain target directory not found. Please follow instructions to add a superchain target in CONTRIBUTING.md: %s", targetDir)
return fmt.Errorf("superchain target directory not found: %s. Please add the target in CONTRIBUTING.md", targetDir)
Copy link
Collaborator

@bitwiseguy bitwiseguy Nov 13, 2024

Choose a reason for hiding this comment

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

Let's reword this slightly:

fmt.Errorf("superchain target directory not found: %s. Please follow instructions in CONTRIBUTING.md to add a superchain target", targetDir)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants