You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(devnet): only show init hint for InitializationError (#408)
* feat(devnet): add InitializationError class for config errors
* refactor(devnet): throw InitializationError for missing config files
* fix(devnet): only show init hint for InitializationError
* test(devnet): add tests for error classification
* chore: add changeset for devnet config hint fix
* test(devnet): reset mock implementation in beforeEach for test isolation
fix(devnet): only show init hint for InitializationError
6
+
7
+
The `offckb devnet config` command was showing the "run `offckb node` once to initialize devnet config files first" hint for ALL errors, including user input errors like invalid `--set` syntax or validation failures.
8
+
9
+
Now the hint is only shown for actual initialization errors (missing config path, ckb.toml, or miner.toml), making error messages clearer and less misleading.
10
+
11
+
- Added `InitializationError` class to distinguish initialization errors from user input errors
12
+
- Updated `createDevnetConfigEditor()` to throw `InitializationError` for missing files/paths
13
+
- Modified `devnetConfig()` catch block to only show hint for `InitializationError`
0 commit comments