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

[NayNay] Testing Mix's Custom Config #290

Merged
merged 5 commits into from
Nov 13, 2024

Conversation

rh0delta
Copy link
Contributor

Proposed Changes

  • the general purpose of the custom config works, however there is alot of work to be done regarding error handling
  • i have only started testing the custom config feature with a file that doesn't exist: ./custom-files/custom-config-<#>.json
  • this originally caused issues on the tui and did not allow for anything to start until the tui eventually errored out
  • similar errors were found with the cli as well
  • ive fixed the tui for the most part
  • but theres still lots to do to fix the cli in terms of proper error handling

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

Screenshots (if applicable)

Additional Context

Checklist

  • I have performed a self-review of my code.
  • I have added tests.
  • I have commented my code.
  • I have included a CHANGELOG.md entry.
  • I have updated documentation in github.com:entropyxyz/entropy-docs, where necessary.

- the general purpose of the custom config works, however there is alot of work to be done regarding error handling
- i have only started testing the custom config feature with a file that doesn't exist: ./custom-files/custom-config-<#>.json
- this originally caused issues on the tui and did not allow for anything to start until the tui eventually errored out
- similar errors were found with the cli as well
- ive fixed the tui for the most part
- but theres still lots to do to fix the cli in terms of proper error handling
@rh0delta rh0delta requested a review from mixmix November 11, 2024 19:44
src/common/utils-cli.ts Outdated Show resolved Hide resolved
if (!account) {
console.error(`AccountError: No account with name or address "${addressOrName}"`)
if (config.accounts.length && !account) {
console.error(ERROR_RED + `AccountError: No account with name or address "${addressOrName}"`)
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably make a printError

src/common/utils-cli.ts Outdated Show resolved Hide resolved
src/common/utils-cli.ts Outdated Show resolved Hide resolved
src/common/utils.ts Outdated Show resolved Hide resolved
@mixmix mixmix merged commit 3cabc31 into mixmix/custom-config Nov 13, 2024
2 checks passed
@mixmix mixmix deleted the naynay/mixmix-custom-config branch November 13, 2024 03:01
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2024
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