Add supported-chains cmd & Improve Error Messages#330
Open
Add supported-chains cmd & Improve Error Messages#330
Conversation
- Shows the actual file being searched (project.yaml) and the directory searched from - Suggests: run from project dir, cre init, or --project-root 2. Script not found cre-compile (cmd/common/compile.go) - Detects the specific Script not found + cre-compile pattern in bun output - Explains it comes from @chainlink/cre-sdk package - Suggests: bun install, check package.json deps, cre workflow init 3. No RPC URLs found (cmd/workflow/simulate/simulate.go, simulator_utils.go) - Shows the actual selected target name in the error - Added --supported-chains flag to cre workflow simulate that lists all supported chain names - Error message points users to run cre workflow simulate --supported-chains 4. Invalid private key (internal/ethkeys/keys.go, cmd/workflow/simulate/simulate.go) - Shows the actual key length after normalization (so users can see got 40 chars vs expected 64) - Clarifies 0x prefix is supported and stripped automatically - Lists real common issues: pasted address instead of key, extra quotes, truncated 5. Workflow.yaml not found (internal/settings/settings_load.go) - Shows the resolved workflow directory path where it looked - Suggests: cre workflow init, add workflow.yaml manually, check folder argument
|
👋 ejacquier, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
* Refactor: extract oauth from login * Lint
* CLI AI UX improvements: - Show required networks in cre templates list output - Add --json flag to cre templates list for machine-parseable output - Show actionable error with missing --rpc-url flags when cre init fails without TTY - Add --non-interactive flag to cre init for CI/CD usage - Only show tip footer on root help page, not subcommands - Make cre init respect -R/--project-root flag for output location * update creinit * fix tests * gendoc * comment fix
* Refactor: extract oauth from login * Lint * complete vault secrets browser OAuth (callback + exchange) * Lint * Update token exchage flow
- Shows the actual file being searched (project.yaml) and the directory searched from - Suggests: run from project dir, cre init, or --project-root 2. Script not found cre-compile (cmd/common/compile.go) - Detects the specific Script not found + cre-compile pattern in bun output - Explains it comes from @chainlink/cre-sdk package - Suggests: bun install, check package.json deps, cre workflow init 3. No RPC URLs found (cmd/workflow/simulate/simulate.go, simulator_utils.go) - Shows the actual selected target name in the error - Added --supported-chains flag to cre workflow simulate that lists all supported chain names - Error message points users to run cre workflow simulate --supported-chains 4. Invalid private key (internal/ethkeys/keys.go, cmd/workflow/simulate/simulate.go) - Shows the actual key length after normalization (so users can see got 40 chars vs expected 64) - Clarifies 0x prefix is supported and stripped automatically - Lists real common issues: pasted address instead of key, extra quotes, truncated 5. Workflow.yaml not found (internal/settings/settings_load.go) - Shows the resolved workflow directory path where it looked - Suggests: cre workflow init, add workflow.yaml manually, check folder argument
…li into error-improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supported Chains
cre workflow supported-chainscommand (sorted alphabetically)📊 Error Handling Improvements
cre init,--project-root, orcdinto project@chainlink/cre-sdk+ suggestsbun install/cre updaterpcssection and--supported-chainscre workflow initor checking path